sidekick.ecmascript
Class EcmaScriptSideKickParser
java.lang.Object
sidekick.SideKickParser
sidekick.ecmascript.EcmaScriptSideKickParser
- All Implemented Interfaces:
- sidekick.enhanced.PartialParser
public class EcmaScriptSideKickParser
- extends sidekick.SideKickParser
- implements sidekick.enhanced.PartialParser
- Version:
- $Revision$
- Author:
- Dale Anson
|
Field Summary |
static boolean |
showAll
|
| Fields inherited from class sidekick.SideKickParser |
name, SERVICE |
|
Method Summary |
void |
parse()
|
sidekick.SideKickParsedData |
parse(org.gjt.sp.jedit.Buffer buffer,
errorlist.DefaultErrorSource errorSource)
Parse the contents of the given buffer. |
sidekick.SideKickParsedData |
parse(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text,
errorlist.DefaultErrorSource errorSource)
Parse the contents of the given text. |
void |
setStartLine(int offset)
If called by another parser to parse part of a file (for example, to parse
a script tag in an html document), this can be set to the offset of the
script tag so that the node locations can be set correctly. |
| Methods inherited from class sidekick.SideKickParser |
activate, activate, canCompleteAnywhere, canHandleBackspace, complete, deactivate, deactivate, getCompletionPopup, getInstantCompletionTriggers, getName, getPanel, getParseTriggers, stop, supportsCompletion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
showAll
public static boolean showAll
EcmaScriptSideKickParser
public EcmaScriptSideKickParser()
setStartLine
public void setStartLine(int offset)
- If called by another parser to parse part of a file (for example, to parse
a script tag in an html document), this can be set to the offset of the
script tag so that the node locations can be set correctly.
- Specified by:
setStartLine in interface sidekick.enhanced.PartialParser
parse
public void parse()
parse
public sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer,
errorlist.DefaultErrorSource errorSource)
- Parse the contents of the given buffer. This is the standard entry point
and will cause the entire text of the buffer to be parsed.
- Specified by:
parse in class sidekick.SideKickParser
- Parameters:
buffer - the buffer to parseerrorSource - where to send errors
- Returns:
- Description of the Returned Value
parse
public sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text,
errorlist.DefaultErrorSource errorSource)
- Parse the contents of the given text. This is the entry point to use when
only a portion of the buffer text is to be parsed. Note that
setLineOffset
should be called prior to calling this method, otherwise, tree node positions
may be off.
- Specified by:
parse in interface sidekick.enhanced.PartialParser
- Parameters:
buffer - the buffer to parseerrorSource - where to send errors
- Returns:
- Description of the Returned Value