| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.tree.pattern | |
| org.antlr.v4.runtime.tree.xpath |
| 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 |
UnbufferedCharStream
Do not buffer up the entire char stream.
|
| Modifier and Type | Field and Description |
|---|---|
CharStream |
Lexer._input |
| Modifier and Type | Field and Description |
|---|---|
protected Tuple2<? extends TokenSource,CharStream> |
Lexer._tokenFactorySourcePair |
protected static Tuple2<TokenSource,CharStream> |
CommonToken.EMPTY_SOURCE
An empty
Tuple2 which is used as the default value of
CommonToken.source for tokens that do not have a source. |
protected Tuple2<? extends TokenSource,CharStream> |
CommonToken.source
This is the backing field for
CommonToken.getTokenSource() and
CommonToken.getInputStream(). |
| Modifier and Type | Method and Description |
|---|---|
CharStream |
TokenSource.getInputStream()
Get the
CharStream from which this token source is currently
providing tokens. |
CharStream |
Token.getInputStream()
Gets the
CharStream from which this token was derived. |
CharStream |
ListTokenSource.getInputStream()
Get the
CharStream from which this token source is currently
providing tokens. |
CharStream |
LexerNoViableAltException.getInputStream() |
CharStream |
Lexer.getInputStream() |
CharStream |
CommonToken.getInputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
Lexer.setInputStream(CharStream input)
Set the char stream and reset the lexer
|
| Modifier and Type | Method and Description |
|---|---|
Token |
TokenFactory.create(Tuple2<? extends TokenSource,CharStream> source,
int type,
String text,
int channel,
int start,
int stop,
int line,
int charPositionInLine)
This is the method used to create tokens in the lexer and in the
error handling strategy.
|
CommonToken |
CommonTokenFactory.create(Tuple2<? extends TokenSource,CharStream> source,
int type,
String text,
int channel,
int start,
int stop,
int line,
int charPositionInLine) |
| Constructor and Description |
|---|
Lexer(CharStream input) |
LexerInterpreter(String grammarFileName,
Collection<String> tokenNames,
Collection<String> ruleNames,
Collection<String> modeNames,
ATN atn,
CharStream input)
Deprecated.
|
LexerInterpreter(String grammarFileName,
Vocabulary vocabulary,
Collection<String> ruleNames,
Collection<String> modeNames,
ATN atn,
CharStream input) |
LexerNoViableAltException(Lexer lexer,
CharStream input,
int startIndex,
ATNConfigSet deadEndConfigs) |
RecognitionException(Lexer lexer,
CharStream input) |
| Constructor and Description |
|---|
CommonToken(Tuple2<? extends TokenSource,CharStream> source,
int type,
int channel,
int start,
int stop) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
LexerATNSimulator.accept(CharStream input,
LexerActionExecutor lexerActionExecutor,
int startIndex,
int index,
int line,
int charPos) |
protected void |
LexerATNSimulator.captureSimState(LexerATNSimulator.SimState settings,
CharStream input,
DFAState dfaState) |
protected boolean |
LexerATNSimulator.closure(CharStream input,
ATNConfig config,
ATNConfigSet configs,
boolean currentAltReachedAcceptState,
boolean speculative,
boolean treatEofAsEpsilon)
Since the alternatives within any lexer decision are ordered by
preference, this method stops pursuing the closure as soon as an accept
state is reached.
|
protected ATNConfigSet |
LexerATNSimulator.computeStartState(CharStream input,
ATNState p) |
protected DFAState |
LexerATNSimulator.computeTargetState(CharStream input,
DFAState s,
int t)
Compute a target state for an edge in the DFA, and attempt to add the
computed state and corresponding edge to the DFA.
|
void |
LexerATNSimulator.consume(CharStream input) |
protected boolean |
LexerATNSimulator.evaluatePredicate(CharStream input,
int ruleIndex,
int predIndex,
boolean speculative)
Evaluate a predicate specified in the lexer.
|
protected int |
LexerATNSimulator.execATN(CharStream input,
DFAState ds0) |
void |
LexerActionExecutor.execute(Lexer lexer,
CharStream input,
int startIndex)
Execute the actions encapsulated by this executor within the context of a
particular
Lexer. |
protected int |
LexerATNSimulator.failOrAccept(LexerATNSimulator.SimState prevAccept,
CharStream input,
ATNConfigSet reach,
int t) |
protected ATNConfig |
LexerATNSimulator.getEpsilonTarget(CharStream input,
ATNConfig config,
Transition t,
ATNConfigSet configs,
boolean speculative,
boolean treatEofAsEpsilon) |
protected void |
LexerATNSimulator.getReachableConfigSet(CharStream input,
ATNConfigSet closure,
ATNConfigSet reach,
int t)
Given a starting configuration set, figure out all ATN configurations
we can reach upon input
t. |
String |
LexerATNSimulator.getText(CharStream input)
Get the text matched so far for the current token.
|
int |
LexerATNSimulator.match(CharStream input,
int mode) |
protected int |
LexerATNSimulator.matchATN(CharStream input) |
| Modifier and Type | Method and Description |
|---|---|
CharStream |
RuleTagToken.getInputStream()
Gets the
CharStream from which this token was derived. |
| Constructor and Description |
|---|
XPathLexer(CharStream input) |
Copyright © 1992–2015 ANTLR. All rights reserved.