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

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

Introduction

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

The text is from its open source code.

Subclass

org.antlr.v4.runtime.CommonTokenStream has subclasses.
Click this link to see all its subclasses.

Constructor

CommonTokenStream(TokenSource tokenSource)
Constructs a new CommonTokenStream using the specified token source and the default token channel ( Token#DEFAULT_CHANNEL ).
CommonTokenStream(TokenSource tokenSource, int channel)
Constructs a new CommonTokenStream using the specified token source and filtering tokens to the specified channel.

Method

voidconsume()
voidfill()
Get all tokens from lexer until EOF
Tokenget(int i)
ListgetHiddenTokensToLeft(int tokenIndex)
Collect all hidden tokens (any off-default channel) to the left of the current token up until we see a token on DEFAULT_TOKEN_CHANNEL.
StringgetText(Interval interval)
StringgetText()
Get the text of all tokens in this buffer.
ListgetTokens()
TokenSourcegetTokenSource()
intindex()
intLA(int i)
TokenLT(int k)
voidreset()
This method resets the token stream back to the first token in the buffer.
voidseek(int index)
voidsetTokenSource(TokenSource tokenSource)
Reset this token stream by setting its token source.
intsize()