Package | Description |
---|---|
org.antlr.v4.runtime |
Modifier and Type | Interface and Description |
---|---|
interface |
CharStream
A source of characters for an ANTLR lexer.
|
interface |
TokenStream
|
Modifier and Type | Class and Description |
---|---|
class |
ANTLRFileStream
This is an
ANTLRInputStream that is loaded from a file all at once
when you construct the object. |
class |
ANTLRInputStream
|
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 |
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 and Description |
---|---|
abstract IntStream |
Recognizer.getInputStream() |
IntStream |
RecognitionException.getInputStream()
Gets the input stream which is the symbol source for the recognizer where
this exception was thrown.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Recognizer.setInputStream(IntStream input) |
void |
Parser.setInputStream(IntStream input) |
void |
Lexer.setInputStream(IntStream input)
Set the char stream and reset the lexer
|
Constructor and Description |
---|
RecognitionException(Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
RecognitionException(String message,
Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
Copyright © 1992-2016 ANTLR. All Rights Reserved.