public interface PartialParser
Modifier and Type | Method and Description |
---|---|
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 startLine)
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
text to be parsed so that the node locations can be set correctly.
|
void setStartLine(int startLine)
startLine
- the starting line in the buffer of the text that is to
be parsed.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer, java.lang.String text, errorlist.DefaultErrorSource errorSource)
setLineOffset
should be called prior to calling this method, otherwise, tree node positions
may be off.buffer
- the buffer containing the text to parsetext
- the text to parseerrorSource
- where to send errors