Package | Description |
---|---|
org.antlr.v4.runtime |
Modifier and Type | Interface | Description |
---|---|---|
interface |
CharStream |
A source of characters for an ANTLR lexer.
|
interface |
TokenStream |
Modifier and Type | Class | Description |
---|---|---|
class |
ANTLRFileStream |
Deprecated.
as of 4.7 Please use
CharStreams interface. |
class |
ANTLRInputStream |
Deprecated.
as of 4.7 Please use
CharStreams interface. |
class |
BufferedTokenStream |
This implementation of
TokenStream loads tokens from a
TokenSource on-demand, and places the tokens in a buffer to provide
access to any previous token by index. |
class |
CodePointCharStream |
Alternative to
ANTLRInputStream which treats the input
as a series of Unicode code points, instead of a series of UTF-16
code units. |
class |
CommonTokenStream |
This class extends
BufferedTokenStream with functionality to filter
token streams to tokens on a particular channel (tokens where
Token.getChannel() returns a particular value). |
class |
UnbufferedCharStream |
Do not buffer up the entire char stream.
|
class |
UnbufferedTokenStream<T extends Token> |
Modifier and Type | Method | Description |
---|---|---|
IntStream |
RecognitionException.getInputStream() |
Gets the input stream which is the symbol source for the recognizer where
this exception was thrown.
|
abstract IntStream |
Recognizer.getInputStream() |
Modifier and Type | Method | Description |
---|---|---|
void |
Lexer.setInputStream(IntStream input) |
Set the char stream and reset the lexer
|
void |
Parser.setInputStream(IntStream input) |
|
abstract void |
Recognizer.setInputStream(IntStream input) |
Constructor | Description |
---|---|
RecognitionException(String message,
Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
|
RecognitionException(Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
Copyright © 1992–2019 ANTLR. All rights reserved.