Serialized Form
Package org.antlr.runtime |
type
int type
line
int line
charPositionInLine
int charPositionInLine
channel
int channel
text
java.lang.String text
- We need to be able to change the text once in a while. If
this is non-null, then getText should return this. Note that
start/stop are not affected by changing this.
index
int index
- What token number is this from 0..n-1 tokens; < 0 implies invalid index
start
int start
- The char position into the input buffer where this token starts
stop
int stop
- The char position into the input buffer where this token stops
decisionNumber
int decisionNumber
ruleName
java.lang.String ruleName
predicateText
java.lang.String predicateText
a
int a
b
int b
expecting
BitSet expecting
expecting
int expecting
expecting
int expecting
grammarDecisionDescription
java.lang.String grammarDecisionDescription
decisionNumber
int decisionNumber
stateNumber
int stateNumber
index
int index
- What is index of token/char were we looking at when the error occurred?
token
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.
node
java.lang.Object node
- If this is a tree parser exception, node is set to the node with
the problem.
c
int c
- The current char when an error occurred. For lexers.
line
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.
charPositionInLine
int charPositionInLine
Package org.antlr.runtime.tree |
elementDescription
java.lang.String elementDescription