|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PartialParser
Parsers that implement this interface have the ability to parse just part of a buffer. This makes it possible to combine parsers so that, for example, an html parser can delegate to a javascript parser to handle javascript embedded in the html file, and to a css parser to handle embedded style sections.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |