public class CommentParserContext extends java.lang.Object implements ParserContext<java.lang.String>
| Constructor and Description |
|---|
CommentParserContext(int codePoint) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consume(int codePoint,
Jankson loader)
Consume one codepoint from the stream, and either use it to continue composing the result or to discover that
the result is complete and processing should stop.
|
void |
eof()
Notifies this context that the file ended abruptly while in this context and before isComplete returned true.
|
java.lang.String |
getResult()
Gets the result of parsing.
|
boolean |
isComplete()
Returns true if the parser has assembled a complete result.
|
public boolean consume(int codePoint,
Jankson loader)
throws SyntaxError
ParserContextconsume in interface ParserContext<java.lang.String>SyntaxErrorpublic void eof()
throws SyntaxError
ParserContexteof in interface ParserContext<java.lang.String>SyntaxErrorpublic boolean isComplete()
ParserContextisComplete in interface ParserContext<java.lang.String>public java.lang.String getResult()
throws SyntaxError
ParserContextgetResult in interface ParserContext<java.lang.String>SyntaxError