Uses of Class
org.antlr.v4.runtime.atn.ATNConfigSet
Packages that use ATNConfigSet
-
Uses of ATNConfigSet in org.antlr.v4.runtime
Fields in org.antlr.v4.runtime declared as ATNConfigSetModifier and TypeFieldDescriptionprivate final ATNConfigSetLexerNoViableAltException.deadEndConfigsWhich configurations did we try at input.index() that couldn't match input.LA(1)?private final ATNConfigSetNoViableAltException.deadEndConfigsWhich configurations did we try at input.index() that couldn't match input.LT(1)?Methods in org.antlr.v4.runtime that return ATNConfigSetModifier and TypeMethodDescriptionLexerNoViableAltException.getDeadEndConfigs()NoViableAltException.getDeadEndConfigs()Methods in org.antlr.v4.runtime with parameters of type ATNConfigSetModifier and TypeMethodDescriptionprotected BitSetDiagnosticErrorListener.getConflictingAlts(BitSet reportedAlts, ATNConfigSet configs) Computes the set of conflicting or ambiguous alternatives from a configuration set, if that information was not already provided by the parser.voidBaseErrorListener.reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) voidDiagnosticErrorListener.reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) voidParserErrorListener.reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) This method is called by the parser when a full-context prediction results in an ambiguity.voidProxyParserErrorListener.reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) Constructors in org.antlr.v4.runtime with parameters of type ATNConfigSetModifierConstructorDescriptionLexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs) NoViableAltException(Recognizer<Token, ?> recognizer, TokenStream input, Token startToken, Token offendingToken, ATNConfigSet deadEndConfigs, ParserRuleContext ctx) -
Uses of ATNConfigSet in org.antlr.v4.runtime.atn
Subclasses of ATNConfigSet in org.antlr.v4.runtime.atnModifier and TypeClassDescriptionclassLexer configuration set that merges configs only when they are fully equal (including prediction context and lexer actions), preserving first-match preference order among alternatives.Fields in org.antlr.v4.runtime.atn declared as ATNConfigSetModifier and TypeFieldDescriptionprivate ATNConfigSetRetainedConfigSet.bufferprivate ATNConfigSetEpsilonClosure.bufferADouble-buffer scratch sets for BFS rule-transition layering whencollectPredicatesisfalse.private ATNConfigSetEpsilonClosure.bufferBprivate ATNConfigSetReachConfigSource.setMethods in org.antlr.v4.runtime.atn that return ATNConfigSetModifier and TypeMethodDescriptionprotected 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) ATNConfigSetRetainedConfigSet.buffer()Underlying buffer after firstRetainedConfigSet.obtain(int), elsenull.ATNConfigSet.clone(boolean readonly) OrderedATNConfigSet.clone(boolean readonly) protected ATNConfigSetLexerATNSimulator.computeStartState(CharStream input, ATNState p) (package private) ATNConfigSetRetainedConfigSet.obtain(int sourceSize) Returns the retained buffer, allocating on first use.protected ATNConfigSetParserATNSimulator.removeAllConfigsNotInRuleStopState(ATNConfigSet configs, PredictionContextCache contextCache) Return a configuration set containing only the configurations fromconfigswhich are in aRuleStopState.(package private) ATNConfigSetEpsilonClosure.retainedBufferA()Intermediate buffer A after first non-predicate closure, elsenull.(package private) ATNConfigSetEpsilonClosure.retainedBufferB()Intermediate buffer B after first non-predicate closure, elsenull.(package private) final ATNConfigSetLexerATNSimulator.retainedReachBuffer()Underlying retained reach buffer after firstLexerATNSimulator.computeTargetState(org.antlr.v4.runtime.CharStream, org.antlr.v4.runtime.dfa.DFAState, int), elsenull.Methods in org.antlr.v4.runtime.atn with parameters of type ATNConfigSetModifier and TypeMethodDescriptionprotected DFAStateParserATNSimulator.addDFAContextState(DFA dfa, ATNConfigSet configs, int returnContext, PredictionContextCache contextCache) See comment on LexerInterpreter.addDFAState.protected DFAStateLexerATNSimulator.addDFAEdge(DFAState from, int t, ATNConfigSet q) protected DFAStateParserATNSimulator.addDFAEdge(DFA dfa, DFAState fromState, int t, IntegerList contextTransitions, ATNConfigSet toConfigs, PredictionContextCache contextCache) protected DFAStateLexerATNSimulator.addDFAState(ATNConfigSet configs) Add a new DFA state if there isn't one with this set of configurations already.protected DFAStateParserATNSimulator.addDFAState(DFA dfa, ATNConfigSet configs, PredictionContextCache contextCache) See comment on LexerInterpreter.addDFAState.static booleanPredictionMode.allConfigsInRuleStopStates(ATNConfigSet configs) Checks if all configurations inconfigsare in aRuleStopState.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 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) 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 DFAStateParserATNSimulator.createDFAState(DFA dfa, ATNConfigSet configs) protected intLexerATNSimulator.failOrAccept(LexerATNSimulator.SimState prevAccept, CharStream input, ATNConfigSet reach, int t) 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.static BitSetPredictionMode.getAlts(ATNConfigSet configs) Get union of all alts from configs.protected BitSetParserATNSimulator.getConflictingAltsFromConfigSet(ATNConfigSet configs) static Collection<BitSet>PredictionMode.getConflictingAltSubsets(ATNConfigSet configs) This function gets the conflicting alt subsets from a configuration set.protected ATNConfigLexerATNSimulator.getEpsilonTarget(CharStream input, ATNConfig config, Transition t, ATNConfigSet configs, boolean speculative, boolean treatEofAsEpsilon) protected SemanticContext[]ParserATNSimulator.getPredsForAmbigAlts(BitSet ambigAlts, ATNConfigSet configs, int nalts) protected voidLexerATNSimulator.getReachableConfigSet(CharStream input, ATNConfigSet closure, ATNConfigSet reach, int t) Given a starting configuration set, figure out all ATN configurations we can reach upon inputt.PredictionMode.getStateToAltMap(ATNConfigSet configs) Get a map from state to alt subset from a configuration set.static booleanPredictionMode.hasConfigInRuleStopState(ATNConfigSet configs) Checks if any configuration inconfigsis in aRuleStopState.static booleanPredictionMode.hasSLLConflictTerminatingPrediction(PredictionMode mode, ATNConfigSet configs) Computes the SLL prediction termination condition.static booleanPredictionMode.hasStateAssociatedWithOneAlt(ATNConfigSet configs) private ConflictInfoParserATNSimulator.isConflicted(ATNConfigSet configset, PredictionContextCache contextCache) protected NoViableAltExceptionParserATNSimulator.noViableAlt(TokenStream input, ParserRuleContext outerContext, ATNConfigSet configs, int startIndex) protected DFAState.PredPrediction[]ParserATNSimulator.predicateDFAState(DFAState D, ATNConfigSet configs, int nalts) collect and set D's semantic contextprotected ATNConfigSetParserATNSimulator.removeAllConfigsNotInRuleStopState(ATNConfigSet configs, PredictionContextCache contextCache) Return a configuration set containing only the configurations fromconfigswhich are in aRuleStopState.protected voidParserATNSimulator.reportAmbiguity(DFA dfa, DFAState D, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) If context sensitive parsing, we know it's ambiguity not conflictprotected voidProfilingATNSimulator.reportAmbiguity(DFA dfa, DFAState D, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) (package private) voidReachConfigSource.reset(ATNConfigSet set) Bind this source tosetfor a new edge computation.Constructors in org.antlr.v4.runtime.atn with parameters of type ATNConfigSetModifierConstructorDescriptionprotectedATNConfigSet(ATNConfigSet set, boolean readonly) OrderedATNConfigSet(ATNConfigSet set, boolean readonly) -
Uses of ATNConfigSet in org.antlr.v4.runtime.dfa
Fields in org.antlr.v4.runtime.dfa declared as ATNConfigSetConstructors in org.antlr.v4.runtime.dfa with parameters of type ATNConfigSetModifierConstructorDescriptionDFAState(DFA dfa, ATNConfigSet configs) Constructs a newDFAStatefor a DFA.DFAState(EmptyEdgeMap<DFAState> emptyEdges, EmptyEdgeMap<DFAState> emptyContextEdges, ATNConfigSet configs) Constructs a newDFAStatewith explicit initial values for the outgoing edge and context edge maps.