Uses of Class
org.antlr.v4.runtime.atn.ATNConfig
Packages that use ATNConfig
-
Uses of ATNConfig in org.antlr.v4.runtime.atn
Subclasses of ATNConfig in org.antlr.v4.runtime.atnModifier and TypeClassDescriptionprivate static classThis class was derived fromATNConfigpurely as a memory optimization.private static classThis class was derived fromATNConfig.SemanticContextATNConfigpurely as a memory optimization.private static classThis class was derived fromATNConfigpurely as a memory optimization.Fields in org.antlr.v4.runtime.atn with type parameters of type ATNConfigModifier and TypeFieldDescriptionEpsilonClosure.closureBusyRetained busy set for right-recursion / EOF* guards.LexerATNSimulator.closureBusyClosure busy set for the current outermostLexerATNSimulator.closure(org.antlr.v4.runtime.CharStream, org.antlr.v4.runtime.atn.ATNConfig, org.antlr.v4.runtime.atn.ATNConfigSet, boolean, boolean, boolean)call.ATNConfigSet.configsThis is a list of all configs in this set.ReachConfigSource.listActive read source after the firstReachConfigSource.appendContext(int, org.antlr.v4.runtime.atn.PredictionContextCache);nullwhile still viewingReachConfigSource.setdirectly.private final ClearableLongObjectHashMap<ATNConfig>ATNConfigSet.mergedConfigsThis maps (state, alt) -> mergedATNConfig.ReachConfigSource.rewriteScratchCapacity-preserving rewrite buffer.private static final Comparator<ATNConfig>ParserATNSimulator.STATE_ALT_SORT_COMPARATORATNConfigSet.unmergedThis is an "overflow" list holding configs which cannot be merged with one of the configs inATNConfigSet.mergedConfigsbut have a colliding key.Methods in org.antlr.v4.runtime.atn that return ATNConfigModifier and TypeMethodDescriptionprotected ATNConfigParserATNSimulator.actionTransition(ATNConfig config, ActionTransition t) ATNConfig.appendContext(int context, PredictionContextCache contextCache) ATNConfig.appendContext(PredictionContext context, PredictionContextCache contextCache) final ATNConfigATNConfig.clone()static ATNConfigATNConfig.create(ATNState state, int alt, PredictionContext context) static ATNConfigATNConfig.create(ATNState state, int alt, PredictionContext context, SemanticContext semanticContext) static ATNConfigATNConfig.create(ATNState state, int alt, PredictionContext context, SemanticContext semanticContext, LexerActionExecutor lexerActionExecutor) ATNConfigSet.get(int index) (package private) ATNConfigReachConfigSource.get(int index) protected ATNConfigLexerATNSimulator.getEpsilonTarget(CharStream input, ATNConfig config, Transition t, ATNConfigSet configs, boolean speculative, boolean treatEofAsEpsilon) 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.ATNConfigSet.ATNConfigSetIterator.next()protected ATNConfigParserATNSimulator.precedenceTransition(ATNConfig config, PrecedencePredicateTransition pt, boolean collectPredicates, boolean inContext) protected ATNConfigParserATNSimulator.predTransition(ATNConfig config, PredicateTransition pt, boolean collectPredicates, boolean inContext) protected ATNConfigParserATNSimulator.ruleTransition(ATNConfig config, RuleTransition t, PredictionContextCache contextCache) Build the configuration that results from traversing rule transitiontfromconfig.final ATNConfigfinal ATNConfigATNConfig.transform(ATNState state, LexerActionExecutor lexerActionExecutor, boolean checkNonGreedy) final ATNConfigATNConfig.transform(ATNState state, PredictionContext context, boolean checkNonGreedy) private ATNConfigATNConfig.transform(ATNState state, PredictionContext context, SemanticContext semanticContext, boolean checkNonGreedy, LexerActionExecutor lexerActionExecutor) final ATNConfigATNConfig.transform(ATNState state, SemanticContext semanticContext, boolean checkNonGreedy) Methods in org.antlr.v4.runtime.atn that return types with arguments of type ATNConfigModifier and TypeMethodDescriptionATNConfigSet.iterator()EpsilonClosure.retainedBusy()Retained busy set (same instance acrossEpsilonClosure.close(org.antlr.v4.runtime.atn.ATNConfigSet, org.antlr.v4.runtime.atn.ATNConfigSet, boolean, boolean, org.antlr.v4.runtime.atn.PredictionContextCache, boolean)calls).ReachConfigSource.rewriteScratch()Retained rewrite scratch after first materialization, elsenull.Methods in org.antlr.v4.runtime.atn with parameters of type ATNConfigModifier and TypeMethodDescriptionprotected ATNConfigParserATNSimulator.actionTransition(ATNConfig config, ActionTransition t) booleanbooleanATNConfigSet.add(ATNConfig e, PredictionContextCache contextCache) protected booleanWhetherleftmay merge into the existingrightconfig.protected booleanprivate static booleanATNConfig.checkNonGreedyDecision(ATNConfig source, ATNState target) (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 booleanLexerATNSimulator.closure(CharStream input, ATNConfig config, ATNConfigSet configs, boolean currentAltReachedAcceptState, boolean speculative, boolean treatEofAsEpsilon) Since the alternatives within any lexer decision are ordered by preference, this method stops pursuing the closure as soon as an accept state is reached.protected voidParserATNSimulator.closure(ATNConfig config, ATNConfigSet configs, ATNConfigSet intermediate, Set<ATNConfig> closureBusy, boolean collectPredicates, boolean hasMoreContexts, PredictionContextCache contextCache, int depth, boolean treatEofAsEpsilon) booleanbooleanbooleanprotected ATNConfigLexerATNSimulator.getEpsilonTarget(CharStream input, ATNConfig config, Transition t, ATNConfigSet configs, boolean speculative, boolean treatEofAsEpsilon) 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.protected longPacked(stateNumber, alt)key.protected longprotected ATNStateParserATNSimulator.getReachableTarget(ATNConfig source, Transition trans, int ttype) intThe hash code is only a function of theATNState.stateNumberandcontext.private booleanATNConfigSet.mergeConfigContext(ATNConfig e, PredictionContextCache contextCache, ATNConfig unmergedConfig) protected ATNConfigParserATNSimulator.precedenceTransition(ATNConfig config, PrecedencePredicateTransition pt, boolean collectPredicates, boolean inContext) protected ATNConfigParserATNSimulator.predTransition(ATNConfig config, PredicateTransition pt, boolean collectPredicates, boolean inContext) private booleanLexerATNSimulator.reuseClosure(ATNConfig config, boolean currentAltReachedAcceptState) protected ATNConfigParserATNSimulator.ruleTransition(ATNConfig config, RuleTransition t, PredictionContextCache contextCache) Build the configuration that results from traversing rule transitiontfromconfig.private voidATNConfigSet.updatePropertiesForAddedConfig(ATNConfig config) private voidATNConfigSet.updatePropertiesForMergedConfig(ATNConfig config) Method parameters in org.antlr.v4.runtime.atn with type arguments of type ATNConfigModifier 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.booleanATNConfigSet.addAll(Collection<? extends ATNConfig> c) booleanATNConfigSet.addAll(Collection<? extends ATNConfig> c, PredictionContextCache contextCache) (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 booleanParserATNSimulator.configWithAltAtStopState(Collection<ATNConfig> configs, int alt) protected intParserATNSimulator.getUniqueAlt(Collection<ATNConfig> configs) Constructors in org.antlr.v4.runtime.atn with parameters of type ATNConfigModifierConstructorDescriptionprotectedActionATNConfig(LexerActionExecutor lexerActionExecutor, ATNConfig c, ATNState state, PredictionContext context, boolean passedThroughNonGreedyDecision) ActionSemanticContextATNConfig(LexerActionExecutor lexerActionExecutor, SemanticContext semanticContext, ATNConfig c, ATNState state, PredictionContext context, boolean passedThroughNonGreedyDecision) protectedATNConfig(ATNConfig c, ATNState state, PredictionContext context) SemanticContextATNConfig(SemanticContext semanticContext, ATNConfig c, ATNState state, PredictionContext context) -
Uses of ATNConfig in org.antlr.v4.test.runtime.java.api.perf
Methods in org.antlr.v4.test.runtime.java.api.perf with parameters of type ATNConfigModifier and TypeMethodDescriptionprivate static voidATNHotPathMicroBenchmark.fillReach(OrderedATNConfigSet set, ATNConfig[] pool) private static intATNHotPathMicroBenchmark.uncachedHash(ATNConfig config)