ParseContext for token level parsing.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Token[] | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | ParserState(String module, CharSequence source, Token[] input, int at, SourceLocator locator, int endIndex, Object result)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv CharSequence | |
| pack-priv String | getInputName(int pos)
Implements abstract org. Returns the string representation of the current input (character or token). |
| pack-priv Token | |
| pack-priv boolean | |
| pack-priv char | |
| pack-priv int | toIndex(int pos)
Implements abstract org. Translates the logical position to physical index in the original source. |
| endIndex | back to summary |
|---|---|
| private final int endIndex | |
| input | back to summary |
|---|---|
| private final Token[] input | |
| USED_ON_TOKEN_INPUT | back to summary |
|---|---|
| private static final String USED_ON_TOKEN_INPUT | |
| ParserState | back to summary |
|---|---|
| pack-priv ParserState(String module, CharSequence source, Token[] input, int at, SourceLocator locator, int endIndex, Object result) | |
| characters | back to summary |
|---|---|
| pack-priv CharSequence characters() Implements abstract org. Doc from org. Reads the characters as input. Only applicable to character level parsers.
| |
| getInputName | back to summary |
|---|---|
| pack-priv String getInputName(int pos) Implements abstract org. Doc from org. Returns the string representation of the current input (character or token).
| |
| getToken | back to summary |
|---|---|
| pack-priv Token getToken() Implements abstract org. Doc from org. Returns the current token. Only applicable to token level parser.
| |
| isEof | back to summary |
|---|---|
| pack-priv boolean isEof() Implements abstract org.
| |
| peekChar | back to summary |
|---|---|
| pack-priv char peekChar() Implements abstract org. Doc from org. Peeks the current character. Only applicable to character level parser.
| |
| toIndex | back to summary |
|---|---|
| pack-priv int toIndex(int pos) Implements abstract org. Doc from org. Translates the logical position to physical index in the original source.
| |