public class JavaScriptParser
extends sidekick.enhanced.SourceParser
_asset, _end, _lastLineNumber, _pkgAsset, _start, COMMENT, COMMENT_ICON, commentList, data, LINE_COMMENT, MAIN, PACKAGE_ICON, PACKAGE_INVALID_ICON, packages, PKG_KEY, startLine, SUB_ICON, SUB_INVALID_ICON, SUB_KEY, USE, USE_ICON, USE_INVALID_ICON, USE_KEY
Constructor and Description |
---|
JavaScriptParser()
Constructs a new Parser object
|
Modifier and Type | Method and Description |
---|---|
sidekick.SideKickParsedData |
parse(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text,
errorlist.DefaultErrorSource errorSource) |
protected void |
parseBuffer(org.gjt.sp.jedit.Buffer buffer,
errorlist.DefaultErrorSource errorSource)
Parses the given text and returns a tree model.
|
protected void |
parseBuffer(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text,
errorlist.DefaultErrorSource errorSource) |
addAsset, addCommentAsset, addLineAsset, addList, addPackageAsset, buildTrees, completeAsset, completeAsset, completeAsset, completePackageAsset, find, find2, loadIcon, loadIcons, newTree, parse, setStartLine
protected void parseBuffer(org.gjt.sp.jedit.Buffer buffer, errorlist.DefaultErrorSource errorSource)
parseBuffer
in class sidekick.enhanced.SourceParser
buffer
- The buffer to parse.errorSource
- An error source to add errors to.public sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer, java.lang.String text, errorlist.DefaultErrorSource errorSource)
parse
in interface sidekick.enhanced.PartialParser
parse
in class sidekick.enhanced.SourceParser
protected void parseBuffer(org.gjt.sp.jedit.Buffer buffer, java.lang.String text, errorlist.DefaultErrorSource errorSource)