| Modifier and Type | Field and Description |
|---|---|
| public boolean | approximateLineInfo
If you are parsing a tree node stream, you will encounter som imaginary nodes w/o line/col info. |
| public int | c
The current char when an error occurred. |
| public int | |
| public int | index
What is index of token/char were we looking at when the error occurred? |
| public transient IntStream | input
What input stream did the error occur in? |
| public int | line
Track the line at which the error occurred in case this is generated from a lexer. |
| public Object | node
If this is a tree parser exception, node is set to the node with the problem. |
| public Token | token
The current Token when an error occurred. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public int |
| approximateLineInfo | back to summary |
|---|---|
| public boolean approximateLineInfo If you are parsing a tree node stream, you will encounter som imaginary nodes w/o line/col info. We now search backwards looking for most recent token with line/col info, but notify getErrorHeader() that info is approximate. | |
| c | back to summary |
|---|---|
| public int c The current char when an error occurred. For lexers. | |
| charPositionInLine | back to summary |
|---|---|
| public int charPositionInLine | |
| index | back to summary |
|---|---|
| public int index What is index of token/char were we looking at when the error occurred? | |
| input | back to summary |
|---|---|
| public transient IntStream input What input stream did the error occur in? | |
| line | back to summary |
|---|---|
| public int line Track the line at which the error occurred in case this is generated from a lexer. We need to track this since the unexpected char doesn't carry the line info. | |
| node | back to summary |
|---|---|
| public Object node If this is a tree parser exception, node is set to the node with the problem. | |
| token | back to summary |
|---|---|
| public Token token The current Token when an error occurred. Since not all streams can retrieve the ith Token, we have to track the Token object. For parsers. Even when it's a tree parser, token might be set. | |
| RecognitionException | back to summary |
|---|---|
| public RecognitionException() Used for remote debugger deserialization | |
| RecognitionException | back to summary |
|---|---|
| public RecognitionException(IntStream input) | |
| extractInformationFromTreeNodeStream | back to summary |
|---|---|
| protected void extractInformationFromTreeNodeStream(IntStream input) | |
| getUnexpectedType | back to summary |
|---|---|
| public int getUnexpectedType() Return the token type or char of the unexpected input element | |