Class CharStreamState
java.lang.Object
org.antlr.runtime.CharStreamState
When walking ahead with cyclic DFA or for syntactic predicates,
we need to record the state of the input stream (char index,
line, etc...) so that we can rewind the state after scanning ahead.
This is the complete state of a stream.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intWhat char position 0..n-1 in line is scanner before processing buffer[p]?(package private) intWhat line number is the scanner at before processing buffer[p]?(package private) intIndex into the char stream of next lookahead char -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
p
int pIndex into the char stream of next lookahead char -
line
int lineWhat line number is the scanner at before processing buffer[p]? -
charPositionInLine
int charPositionInLineWhat char position 0..n-1 in line is scanner before processing buffer[p]?
-
-
Constructor Details
-
CharStreamState
public CharStreamState()
-