Uses of Class
org.antlr.v4.runtime.atn.PredictionContextCache
Packages that use PredictionContextCache
-
Uses of PredictionContextCache in org.antlr.v4.runtime.atn
Fields in org.antlr.v4.runtime.atn declared as PredictionContextCacheModifier and TypeFieldDescriptionprivate final PredictionContextCacheParserATNSimulator.retainedContextCacheRetained prediction-context cache for ATN simulation.static final PredictionContextCachePredictionContextCache.UNCACHEDMethods in org.antlr.v4.runtime.atn that return PredictionContextCacheModifier and TypeMethodDescriptionprivate PredictionContextCacheParserATNSimulator.obtainContextCache()Returns the retained prediction-context cache after clearing it.Methods in org.antlr.v4.runtime.atn with parameters of type PredictionContextCacheModifier and TypeMethodDescriptionbooleanATNConfigSet.add(ATNConfig e, PredictionContextCache contextCache) booleanATNConfigSet.addAll(Collection<? extends ATNConfig> c, PredictionContextCache contextCache) protected DFAStateParserATNSimulator.addDFAContextState(DFA dfa, ATNConfigSet configs, int returnContext, PredictionContextCache contextCache) See comment on LexerInterpreter.addDFAState.protected DFAStateParserATNSimulator.addDFAEdge(DFA dfa, DFAState fromState, int t, IntegerList contextTransitions, ATNConfigSet toConfigs, PredictionContextCache contextCache) protected DFAStateParserATNSimulator.addDFAState(DFA dfa, ATNConfigSet configs, PredictionContextCache contextCache) See comment on LexerInterpreter.addDFAState.ArrayPredictionContext.appendContext(PredictionContext suffix, PredictionContextCache contextCache) ATNConfig.appendContext(int context, PredictionContextCache contextCache) ATNConfig.appendContext(PredictionContext context, PredictionContextCache contextCache) EmptyPredictionContext.appendContext(int returnContext, PredictionContextCache contextCache) EmptyPredictionContext.appendContext(PredictionContext suffix, PredictionContextCache contextCache) PredictionContext.appendContext(int returnContext, PredictionContextCache contextCache) abstract PredictionContextPredictionContext.appendContext(PredictionContext suffix, PredictionContextCache contextCache) (package private) voidReachConfigSource.appendContext(int returnState, PredictionContextCache contextCache) AppendsreturnStateto every configuration's prediction context.SingletonPredictionContext.appendContext(PredictionContext suffix, PredictionContextCache contextCache) protected ATNConfigSetParserATNSimulator.applyPrecedenceFilter(ATNConfigSet configs, ParserRuleContext globalContext, PredictionContextCache contextCache) This method transforms the start state computed byParserATNSimulator.computeStartState(org.antlr.v4.runtime.dfa.DFA, org.antlr.v4.runtime.ParserRuleContext, boolean)to the special start state used by a precedence DFA for a particular precedence value.(package private) voidEpsilonClosure.close(ATNConfigSet sourceConfigs, ATNConfigSet configs, boolean collectPredicates, boolean hasMoreContext, PredictionContextCache contextCache, boolean treatEofAsEpsilon) Compute the epsilon closure of every configuration insourceConfigs, adding the resulting non-epsilon (or EOF-as-epsilon) configurations toconfigs.(package private) voidEpsilonClosure.closeOne(ATNConfig config, ATNConfigSet configs, ATNConfigSet intermediate, Set<ATNConfig> closureBusy, boolean collectPredicates, boolean hasMoreContexts, PredictionContextCache contextCache, int depth, boolean treatEofAsEpsilon) Recursive helper: walk epsilon edges fromconfig, adding leaf configurations toconfigsand optionally deferring rule transitions tointermediatefor breadth-first processing.protected voidParserATNSimulator.closure(ATNConfig config, ATNConfigSet configs, ATNConfigSet intermediate, Set<ATNConfig> closureBusy, boolean collectPredicates, boolean hasMoreContexts, PredictionContextCache contextCache, int depth, boolean treatEofAsEpsilon) protected voidParserATNSimulator.closure(ATNConfigSet sourceConfigs, ATNConfigSet configs, boolean collectPredicates, boolean hasMoreContext, PredictionContextCache contextCache, boolean treatEofAsEpsilon) Compute the epsilon closure of every configuration insourceConfigs, adding the resulting non-epsilon (or EOF-as-epsilon) configurations toconfigs.protected SimulatorStateParserATNSimulator.computeReachSet(DFA dfa, SimulatorState previous, int t, PredictionContextCache contextCache) protected SimulatorStateProfilingATNSimulator.computeReachSet(DFA dfa, SimulatorState previous, int t, 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.protected Tuple2<DFAState,ParserRuleContext> ProfilingATNSimulator.computeTargetState(DFA dfa, DFAState s, ParserRuleContext remainingGlobalContext, int t, boolean useContext, PredictionContextCache contextCache) (package private) Tuple2<DFAState,ParserRuleContext> ReachComputation.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.private Tuple2<DFAState,ParserRuleContext> ReachComputation.finishTargetEdge(DFA dfa, DFAState s, int t, IntegerList contextElements, ATNConfigSet edgeConfigs, ParserRuleContext remainingGlobalContext, PredictionContextCache contextCache) Install a DFA edge for the computed config set, orATNSimulator.ERRORif empty.protected ATNConfigParserATNSimulator.getEpsilonTarget(ATNConfig config, Transition t, boolean collectPredicates, boolean inContext, PredictionContextCache contextCache, boolean treatEofAsEpsilon) Compute the target configuration after traversing epsilon transitiontfromconfig, ornulliftis not an epsilon (or EOF-as-epsilon) edge applicable in the current mode.private ConflictInfoParserATNSimulator.isConflicted(ATNConfigSet configset, PredictionContextCache contextCache) (package private) static PredictionContextPredictionContext.join(PredictionContext context0, PredictionContext context1, PredictionContextCache contextCache) private booleanATNConfigSet.mergeConfigContext(ATNConfig e, PredictionContextCache contextCache, ATNConfig unmergedConfig) protected ATNConfigSetParserATNSimulator.removeAllConfigsNotInRuleStopState(ATNConfigSet configs, PredictionContextCache contextCache) Return a configuration set containing only the configurations fromconfigswhich are in aRuleStopState.protected ATNConfigParserATNSimulator.ruleTransition(ATNConfig config, RuleTransition t, PredictionContextCache contextCache) Build the configuration that results from traversing rule transitiontfromconfig.