Example usage for Java org.antlr.v4.runtime TokenStream fields, constructors, methods, implement or subclass
The text is from its open source code.
void | consume() Consumes the current symbol in the stream. |
Token | get(int index) Gets the Token at the specified index in the stream. |
String | getText(Token start, Token stop) Return the text of all tokens in this stream between start and stop (inclusive). |
String | getText() Return the text of all tokens in the stream. |
TokenSource | getTokenSource() Gets the underlying TokenSource which provides tokens for this stream. |
int | index() Return the index into the stream of the input symbol referred to by LA(1) . |
int | LA(int i) Gets the value of the symbol at offset i from the current position. |
Token | LT(int k) Get the Token instance associated with the value returned by #LA LA(k) . |
int | size() Returns the total number of symbols in the stream, including a single EOF symbol. |