| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | ScannerState(String
the current module name for error reporting module, CharSequence the source string source, int from where do we start to scan? from, int till where do we stop scanning? (exclusive) end, SourceLocator the locator for mapping index to line and column number locator, Object the original result value originalResult)
|
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| 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 final <T> T | |
| pack-priv int | toIndex(int pos)
Implements abstract org. Translates the logical position to physical index in the original source. |
| end | back to summary |
|---|---|
| private final int end | |
| ScannerState | back to summary |
|---|---|
| pack-priv ScannerState(CharSequence source) | |
| ScannerState | back to summary |
|---|---|
| pack-priv ScannerState(String module, CharSequence source, int from, SourceLocator locator) | |
| ScannerState | back to summary |
|---|---|
pack-priv ScannerState(String module, CharSequence source, int from, int end, SourceLocator locator, Object originalResult)
| |
| applyWithExceptionWrapped | back to summary |
|---|---|
| private boolean applyWithExceptionWrapped(Parser<?> parser) | |
| 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.
| |
| run | back to summary |
|---|---|
| pack-priv final <T> T run(Parser<T> 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.
| |