Java org.antlr.v4.runtime TokenStream fields, constructors, methods, implement or subclass

Example usage for Java org.antlr.v4.runtime TokenStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.antlr.v4.runtime TokenStream.

The text is from its open source code.

Method

voidconsume()
Consumes the current symbol in the stream.
Tokenget(int index)
Gets the Token at the specified index in the stream.
StringgetText(Token start, Token stop)
Return the text of all tokens in this stream between start and stop (inclusive).
StringgetText()
Return the text of all tokens in the stream.
TokenSourcegetTokenSource()
Gets the underlying TokenSource which provides tokens for this stream.
intindex()
Return the index into the stream of the input symbol referred to by LA(1) .
intLA(int i)
Gets the value of the symbol at offset i from the current position.
TokenLT(int k)
Get the Token instance associated with the value returned by #LA LA(k) .
intsize()
Returns the total number of symbols in the stream, including a single EOF symbol.