Package | Description |
---|---|
org.antlr.v4.runtime.atn |
Modifier and Type | Class and Description |
---|---|
class |
ArrayPredictionContext |
class |
EmptyPredictionContext |
class |
SingletonPredictionContext |
Modifier and Type | Field and Description |
---|---|
PredictionContext |
ATNConfig.context
The stack of invoking states leading to the rule/states associated
with this config.
|
PredictionContext |
SingletonPredictionContext.parent |
PredictionContext[] |
ArrayPredictionContext.parents
Parent can be null only if full ctx mode and we make an array
from
EMPTY and non-empty. |
Modifier and Type | Field and Description |
---|---|
protected Map<PredictionContext,PredictionContext> |
PredictionContextCache.cache |
protected Map<PredictionContext,PredictionContext> |
PredictionContextCache.cache |
protected DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> |
ParserATNSimulator.mergeCache
Each prediction operation uses a cache for merge of prediction contexts.
|
protected DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> |
ParserATNSimulator.mergeCache
Each prediction operation uses a cache for merge of prediction contexts.
|
protected DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> |
ParserATNSimulator.mergeCache
Each prediction operation uses a cache for merge of prediction contexts.
|
Modifier and Type | Method and Description |
---|---|
static List<PredictionContext> |
PredictionContext.getAllContextNodes(PredictionContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
LL1Analyzer._LOOK(ATNState s,
ATNState stopState,
PredictionContext ctx,
IntervalSet look,
Set<ATNConfig> lookBusy,
BitSet calledRuleStack,
boolean seeThruPreds,
boolean addEOF)
Compute set of tokens that can follow
s in the ATN in the
specified ctx . |
PredictionContext |
PredictionContextCache.add(PredictionContext ctx)
Add a context to the cache and return it.
|
protected static int |
PredictionContext.calculateHashCode(PredictionContext[] parents,
int[] returnStates) |
protected static int |
PredictionContext.calculateHashCode(PredictionContext parent,
int returnState) |
protected static void |
PredictionContext.combineCommonParents(PredictionContext[] parents)
Make pass over all M
parents ; merge any equals()
ones. |
static SingletonPredictionContext |
SingletonPredictionContext.create(PredictionContext parent,
int returnState) |
PredictionContext |
PredictionContextCache.get(PredictionContext ctx) |
static void |
PredictionContext.getAllContextNodes_(PredictionContext context,
List<PredictionContext> nodes,
Map<PredictionContext,PredictionContext> visited) |
static List<PredictionContext> |
PredictionContext.getAllContextNodes(PredictionContext context) |
PredictionContext |
ATNSimulator.getCachedContext(PredictionContext context) |
static PredictionContext |
PredictionContext.getCachedContext(PredictionContext context,
PredictionContextCache contextCache,
IdentityHashMap<PredictionContext,PredictionContext> visited) |
static PredictionContext |
PredictionContext.merge(PredictionContext a,
PredictionContext b,
boolean rootIsWildcard,
DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> mergeCache) |
static String |
PredictionContext.toDOTString(PredictionContext context) |
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
PredictionContext stop,
int currentState) |
Constructor and Description |
---|
ArrayPredictionContext(PredictionContext[] parents,
int[] returnStates) |
ATNConfig(ATNConfig c,
ATNState state,
PredictionContext context) |
ATNConfig(ATNConfig c,
ATNState state,
PredictionContext context,
SemanticContext semanticContext) |
ATNConfig(ATNState state,
int alt,
PredictionContext context) |
ATNConfig(ATNState state,
int alt,
PredictionContext context,
SemanticContext semanticContext) |
LexerATNConfig(ATNState state,
int alt,
PredictionContext context) |
LexerATNConfig(ATNState state,
int alt,
PredictionContext context,
LexerActionExecutor lexerActionExecutor) |
LexerATNConfig(LexerATNConfig c,
ATNState state,
PredictionContext context) |
Copyright © 1992–2021 ANTLR. All rights reserved.