Uses of Class
org.antlr.v4.runtime.atn.PredictionContext
Packages that use PredictionContext
-
Uses of PredictionContext in org.antlr.v4.runtime.atn
Subclasses of PredictionContext in org.antlr.v4.runtime.atnModifier and TypeClassDescriptionclass
class
class
Fields in org.antlr.v4.runtime.atn declared as PredictionContextModifier and TypeFieldDescriptionATNConfig.context
The stack of invoking states leading to the rule/states associated with this config.final PredictionContext
SingletonPredictionContext.parent
final PredictionContext[]
ArrayPredictionContext.parents
Parent can be null only if full ctx mode and we make an array fromEMPTY
and non-empty.Fields in org.antlr.v4.runtime.atn with type parameters of type PredictionContextModifier and TypeFieldDescriptionprotected final Map
<PredictionContext, PredictionContext> PredictionContextCache.cache
protected final Map
<PredictionContext, PredictionContext> PredictionContextCache.cache
ParserATNSimulator.mergeCache
Each prediction operation uses a cache for merge of prediction contexts.ParserATNSimulator.mergeCache
Each prediction operation uses a cache for merge of prediction contexts.ParserATNSimulator.mergeCache
Each prediction operation uses a cache for merge of prediction contexts.Methods in org.antlr.v4.runtime.atn that return PredictionContextModifier and TypeMethodDescriptionPredictionContextCache.add
(PredictionContext ctx) Add a context to the cache and return it.static PredictionContext
PredictionContext.fromRuleContext
(ATN atn, RuleContext outerContext) Convert aRuleContext
tree to aPredictionContext
graph.PredictionContextCache.get
(PredictionContext ctx) ATNSimulator.getCachedContext
(PredictionContext context) static PredictionContext
PredictionContext.getCachedContext
(PredictionContext context, PredictionContextCache contextCache, IdentityHashMap<PredictionContext, PredictionContext> visited) ArrayPredictionContext.getParent
(int index) EmptyPredictionContext.getParent
(int index) abstract PredictionContext
PredictionContext.getParent
(int index) SingletonPredictionContext.getParent
(int index) static PredictionContext
PredictionContext.merge
(PredictionContext a, PredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) static PredictionContext
PredictionContext.mergeArrays
(ArrayPredictionContext a, ArrayPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoArrayPredictionContext
instances.static PredictionContext
PredictionContext.mergeRoot
(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard) static PredictionContext
PredictionContext.mergeSingletons
(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoSingletonPredictionContext
instances.Methods in org.antlr.v4.runtime.atn that return types with arguments of type PredictionContextModifier and TypeMethodDescriptionstatic List
<PredictionContext> PredictionContext.getAllContextNodes
(PredictionContext context) Methods in org.antlr.v4.runtime.atn with parameters of type PredictionContextModifier and TypeMethodDescriptionprotected 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 follows
in the ATN in the specifiedctx
.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 Mparents
; merge anyequals()
ones.static SingletonPredictionContext
SingletonPredictionContext.create
(PredictionContext parent, int returnState) PredictionContextCache.get
(PredictionContext ctx) static List
<PredictionContext> PredictionContext.getAllContextNodes
(PredictionContext context) static void
PredictionContext.getAllContextNodes_
(PredictionContext context, List<PredictionContext> nodes, Map<PredictionContext, PredictionContext> visited) 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) Method parameters in org.antlr.v4.runtime.atn with type arguments of type PredictionContextModifier and TypeMethodDescriptionboolean
ATNConfigSet.add
(ATNConfig config, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Adding a new config means merging contexts with existing configs for(s, i, pi, _)
, wheres
is theATNConfig.state
,i
is theATNConfig.alt
, andpi
is theATNConfig.semanticContext
.boolean
ATNConfigSet.add
(ATNConfig config, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Adding a new config means merging contexts with existing configs for(s, i, pi, _)
, wheres
is theATNConfig.state
,i
is theATNConfig.alt
, andpi
is theATNConfig.semanticContext
.boolean
ATNConfigSet.add
(ATNConfig config, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Adding a new config means merging contexts with existing configs for(s, i, pi, _)
, wheres
is theATNConfig.state
,i
is theATNConfig.alt
, andpi
is theATNConfig.semanticContext
.static void
PredictionContext.getAllContextNodes_
(PredictionContext context, List<PredictionContext> nodes, Map<PredictionContext, PredictionContext> visited) static void
PredictionContext.getAllContextNodes_
(PredictionContext context, List<PredictionContext> nodes, Map<PredictionContext, PredictionContext> visited) static void
PredictionContext.getAllContextNodes_
(PredictionContext context, List<PredictionContext> nodes, Map<PredictionContext, PredictionContext> visited) static PredictionContext
PredictionContext.getCachedContext
(PredictionContext context, PredictionContextCache contextCache, IdentityHashMap<PredictionContext, PredictionContext> visited) 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 PredictionContext
PredictionContext.merge
(PredictionContext a, PredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) static PredictionContext
PredictionContext.merge
(PredictionContext a, PredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) static PredictionContext
PredictionContext.mergeArrays
(ArrayPredictionContext a, ArrayPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoArrayPredictionContext
instances.static PredictionContext
PredictionContext.mergeArrays
(ArrayPredictionContext a, ArrayPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoArrayPredictionContext
instances.static PredictionContext
PredictionContext.mergeArrays
(ArrayPredictionContext a, ArrayPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoArrayPredictionContext
instances.static PredictionContext
PredictionContext.mergeSingletons
(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoSingletonPredictionContext
instances.static PredictionContext
PredictionContext.mergeSingletons
(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoSingletonPredictionContext
instances.static PredictionContext
PredictionContext.mergeSingletons
(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoSingletonPredictionContext
instances.Constructors in org.antlr.v4.runtime.atn with parameters of type PredictionContextModifierConstructorDescriptionArrayPredictionContext
(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)