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 TypeClassDescriptionclassclassclassFields in org.antlr.v4.runtime.atn declared as PredictionContextModifier and TypeFieldDescriptionATNConfig.contextThe stack of invoking states leading to the rule/states associated with this config.final PredictionContextSingletonPredictionContext.parentfinal PredictionContext[]ArrayPredictionContext.parentsParent can be null only if full ctx mode and we make an array fromand non-empty.invalid reference
#EMPTYFields in org.antlr.v4.runtime.atn with type parameters of type PredictionContextModifier and TypeFieldDescriptionprotected final Map<PredictionContext, PredictionContext> PredictionContextCache.cacheprotected final Map<PredictionContext, PredictionContext> PredictionContextCache.cacheprotected DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> ParserATNSimulator.mergeCacheEach prediction operation uses a cache for merge of prediction contexts.protected DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> ParserATNSimulator.mergeCacheEach prediction operation uses a cache for merge of prediction contexts.protected DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> ParserATNSimulator.mergeCacheEach 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 PredictionContextPredictionContext.fromRuleContext(ATN atn, RuleContext outerContext) Convert aRuleContexttree to aPredictionContextgraph.PredictionContextCache.get(PredictionContext ctx) ATNSimulator.getCachedContext(PredictionContext context) static PredictionContextPredictionContext.getCachedContext(PredictionContext context, PredictionContextCache contextCache, IdentityHashMap<PredictionContext, PredictionContext> visited) ArrayPredictionContext.getParent(int index) EmptyPredictionContext.getParent(int index) abstract PredictionContextPredictionContext.getParent(int index) SingletonPredictionContext.getParent(int index) static PredictionContextPredictionContext.merge(PredictionContext a, PredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) static PredictionContextPredictionContext.mergeArrays(ArrayPredictionContext a, ArrayPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoArrayPredictionContextinstances.static PredictionContextPredictionContext.mergeRoot(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard) static PredictionContextPredictionContext.mergeSingletons(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoSingletonPredictionContextinstances.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 voidLL1Analyzer._LOOK(ATNState s, ATNState stopState, PredictionContext ctx, IntervalSet look, Set<ATNConfig> lookBusy, BitSet calledRuleStack, boolean seeThruPreds, boolean addEOF) Compute set of tokens that can followsin the ATN in the specifiedctx.PredictionContextCache.add(PredictionContext ctx) Add a context to the cache and return it.protected static intPredictionContext.calculateHashCode(PredictionContext[] parents, int[] returnStates) protected static intPredictionContext.calculateHashCode(PredictionContext parent, int returnState) protected static voidPredictionContext.combineCommonParents(PredictionContext[] parents) Make pass over all Mparents; merge anyequals()ones.static SingletonPredictionContextSingletonPredictionContext.create(PredictionContext parent, int returnState) PredictionContextCache.get(PredictionContext ctx) static List<PredictionContext> PredictionContext.getAllContextNodes(PredictionContext context) static voidPredictionContext.getAllContextNodes_(PredictionContext context, List<PredictionContext> nodes, Map<PredictionContext, PredictionContext> visited) ATNSimulator.getCachedContext(PredictionContext context) static PredictionContextPredictionContext.getCachedContext(PredictionContext context, PredictionContextCache contextCache, IdentityHashMap<PredictionContext, PredictionContext> visited) static PredictionContextPredictionContext.merge(PredictionContext a, PredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) static StringPredictionContext.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 TypeMethodDescriptionbooleanATNConfigSet.add(ATNConfig config, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Adding a new config means merging contexts with existing configs for(s, i, pi, _), wheresis theATNConfig.state,iis theATNConfig.alt, andpiis theATNConfig.semanticContext.booleanATNConfigSet.add(ATNConfig config, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Adding a new config means merging contexts with existing configs for(s, i, pi, _), wheresis theATNConfig.state,iis theATNConfig.alt, andpiis theATNConfig.semanticContext.booleanATNConfigSet.add(ATNConfig config, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Adding a new config means merging contexts with existing configs for(s, i, pi, _), wheresis theATNConfig.state,iis theATNConfig.alt, andpiis theATNConfig.semanticContext.static voidPredictionContext.getAllContextNodes_(PredictionContext context, List<PredictionContext> nodes, Map<PredictionContext, PredictionContext> visited) static voidPredictionContext.getAllContextNodes_(PredictionContext context, List<PredictionContext> nodes, Map<PredictionContext, PredictionContext> visited) static voidPredictionContext.getAllContextNodes_(PredictionContext context, List<PredictionContext> nodes, Map<PredictionContext, PredictionContext> visited) static PredictionContextPredictionContext.getCachedContext(PredictionContext context, PredictionContextCache contextCache, IdentityHashMap<PredictionContext, PredictionContext> visited) static PredictionContextPredictionContext.getCachedContext(PredictionContext context, PredictionContextCache contextCache, IdentityHashMap<PredictionContext, PredictionContext> visited) static PredictionContextPredictionContext.merge(PredictionContext a, PredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) static PredictionContextPredictionContext.merge(PredictionContext a, PredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) static PredictionContextPredictionContext.merge(PredictionContext a, PredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) static PredictionContextPredictionContext.mergeArrays(ArrayPredictionContext a, ArrayPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoArrayPredictionContextinstances.static PredictionContextPredictionContext.mergeArrays(ArrayPredictionContext a, ArrayPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoArrayPredictionContextinstances.static PredictionContextPredictionContext.mergeArrays(ArrayPredictionContext a, ArrayPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoArrayPredictionContextinstances.static PredictionContextPredictionContext.mergeSingletons(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoSingletonPredictionContextinstances.static PredictionContextPredictionContext.mergeSingletons(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoSingletonPredictionContextinstances.static PredictionContextPredictionContext.mergeSingletons(SingletonPredictionContext a, SingletonPredictionContext b, boolean rootIsWildcard, DoubleKeyMap<PredictionContext, PredictionContext, PredictionContext> mergeCache) Merge twoSingletonPredictionContextinstances.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) (package private)SingletonPredictionContext(PredictionContext parent, int returnState)