| 程序包 | 说明 |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.misc |
| 限定符和类型 | 字段和说明 |
|---|---|
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(). |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Deque<Tuple2<ParserRuleContext,Integer>> |
ParserInterpreter._parentContextStack
This stack corresponds to the _parentctx, _parentState pair of locals
that would exist on call stack frames with a recursive descent parser;
in the generated function for a left-recursive rule you'd see:
private EContext e(int _p) throws RecognitionException {
ParserRuleContext _parentctx = _ctx; // Pair.a
int _parentState = getState(); // Pair.b
...
}
Those values are used to create new recursive rule invocation contexts
associated with left operand of an alt like "expr '*' expr".
|
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 构造器和说明 |
|---|
CommonToken(Tuple2<? extends TokenSource,CharStream> source,
int type,
int channel,
int start,
int stop) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Tuple2<DFAState,ParserRuleContext> |
ProfilingATNSimulator.computeTargetState(DFA dfa,
DFAState s,
ParserRuleContext remainingGlobalContext,
int t,
boolean useContext,
PredictionContextCache contextCache) |
protected Tuple2<DFAState,ParserRuleContext> |
ParserATNSimulator.computeTargetState(DFA dfa,
DFAState s,
ParserRuleContext remainingGlobalContext,
int t,
boolean useContext,
PredictionContextCache contextCache)
Compute a target state for an edge in the DFA, and attempt to add the
computed state and corresponding edge to the DFA.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T1,T2> Tuple2<T1,T2> |
Tuple.create(T1 item1,
T2 item2) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Tuple2<RuleDependency,AnnotatedElement>> |
RuleDependencyChecker.getDependencies(Class<?> clazz) |
static List<Tuple2<RuleDependency,Element>> |
RuleDependencyProcessor.getDependencies(RoundEnvironment roundEnv) |
List<Tuple2<K,V>> |
MultiMap.getPairs() |
Copyright © 1992–2022 Daniel Sun. All rights reserved.