Uses of Class
org.antlr.v4.runtime.dfa.DFAState
Packages that use DFAState
-
Uses of DFAState in org.antlr.v4.runtime.atn
Fields in org.antlr.v4.runtime.atn declared as DFAStateModifier and TypeFieldDescriptionprotected DFAStateLexerATNSimulator.SimState.dfaStatestatic final DFAStateATNSimulator.ERRORMust distinguish between missing edge and edge we know leads nowherefinal DFAStateSimulatorState.s0Methods in org.antlr.v4.runtime.atn that return DFAStateModifier 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.protected DFAStateLexerATNSimulator.computeTargetState(CharStream input, DFAState s, int t) Compute a target state for an edge in the DFA, and attempt to add the computed state and corresponding edge to the DFA.protected DFAStateParserATNSimulator.createDFAState(DFA dfa, ATNConfigSet configs) protected DFAStateLexerATNSimulator.getExistingTargetState(DFAState s, int t) Get an existing target state for an edge in the DFA.protected DFAStateParserATNSimulator.getExistingTargetState(DFAState s, int t) Get an existing target state for an edge in the DFA.protected DFAStateProfilingATNSimulator.getExistingTargetState(DFAState previousD, int t) Methods in org.antlr.v4.runtime.atn that return types with arguments of type DFAStateModifier and TypeMethodDescriptionprotected 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.Methods in org.antlr.v4.runtime.atn with parameters of type DFAStateModifier and TypeMethodDescriptionprotected DFAStateLexerATNSimulator.addDFAEdge(DFAState from, int t, ATNConfigSet q) protected voidLexerATNSimulator.addDFAEdge(DFAState p, int t, DFAState q) protected DFAStateParserATNSimulator.addDFAEdge(DFA dfa, DFAState fromState, int t, IntegerList contextTransitions, ATNConfigSet toConfigs, PredictionContextCache contextCache) protected voidParserATNSimulator.addDFAEdge(DFAState p, int t, DFAState q) protected voidLexerATNSimulator.captureSimState(LexerATNSimulator.SimState settings, CharStream input, DFAState dfaState) protected DFAStateLexerATNSimulator.computeTargetState(CharStream input, DFAState s, int t) 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> 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.protected intLexerATNSimulator.execATN(CharStream input, DFAState ds0) private intParserATNSimulator.execDFA(DFA dfa, TokenStream input, int startIndex, ParserRuleContext outerContext, DFAState s0, boolean useContext, ParserRuleContext remainingOuterContext) DFA walk.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 DFAStateLexerATNSimulator.getExistingTargetState(DFAState s, int t) Get an existing target state for an edge in the DFA.protected DFAStateParserATNSimulator.getExistingTargetState(DFAState s, int t) Get an existing target state for an edge in the DFA.protected DFAStateProfilingATNSimulator.getExistingTargetState(DFAState previousD, int t) protected booleanParserATNSimulator.isAcceptState(DFAState state, boolean useContext) Determines if a particular DFA state should be treated as an accept state for the current prediction mode.protected DFAState.PredPrediction[]ParserATNSimulator.predicateDFAState(DFAState D, ATNConfigSet configs, int nalts) collect and set D's semantic contextprivate static booleanParserATNSimulator.repeatedEof(ArrayList<DFAState> states, ArrayList<ParserRuleContext> contexts, DFAState state, ParserRuleContext ctx, boolean useContext) 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) Method parameters in org.antlr.v4.runtime.atn with type arguments of type DFAStateModifier and TypeMethodDescriptionprivate static booleanParserATNSimulator.repeatedEof(ArrayList<DFAState> states, ArrayList<ParserRuleContext> contexts, DFAState state, ParserRuleContext ctx, boolean useContext) Constructors in org.antlr.v4.runtime.atn with parameters of type DFAStateModifierConstructorDescriptionSimulatorState(ParserRuleContext outerContext, DFAState s0, boolean useContext, ParserRuleContext remainingOuterContext) -
Uses of DFAState in org.antlr.v4.runtime.dfa
Fields in org.antlr.v4.runtime.dfa declared as DFAStateModifier and TypeFieldDescriptionprivate DFAState[]DFAState.asciiEdgesASCII lexer edges (0..127), ornulluntil the first such edge is installed.Fields in org.antlr.v4.runtime.dfa with type parameters of type DFAStateModifier and TypeFieldDescriptionprivate AbstractEdgeMap<DFAState>DFAState.contextEdgesThese keys for these edges are the top level element of the global context.private AbstractEdgeMap<DFAState>DFAState.edgesedges.get(symbol)points to target of symbol.private static final EmptyEdgeMap<DFAState>This field initializes the outgoing edge map for the special starting DFA state created for precedence DFAs.private final EmptyEdgeMap<DFAState>This is the backing field forDFA.getEmptyContextEdgeMap().private final EmptyEdgeMap<DFAState>DFA.emptyEdgeMapThis is the backing field forDFA.getEmptyEdgeMap().final AtomicReference<DFAState>DFA.s0This is the start state for SLL prediction.final AtomicReference<DFAState>DFA.s0fullThis is the start state for full context prediction.final ConcurrentMap<DFAState,DFAState> DFA.statesA set of all DFA states.final ConcurrentMap<DFAState,DFAState> DFA.statesA set of all DFA states.Methods in org.antlr.v4.runtime.dfa that return DFAStateModifier and TypeMethodDescriptionDFAState.getContextTarget(int invokingState) final DFAStateDFAState.getLexerTarget(int symbol) Lexer edge lookup.final DFAStateDFA.getPrecedenceStartState(int precedence, boolean fullContext) Get the start state for a specific precedence value.final DFAStateDFAState.getTarget(int symbol) PERF:finalso warmexecDFAedge walks can monomorphically inline through toEdgeMap.get(int)(Hash/Array) without a virtual call at this layer.Methods in org.antlr.v4.runtime.dfa that return types with arguments of type DFAStateModifier and TypeMethodDescriptionDFAState.getContextEdgeMap()DFAState.getEdgeMap()DFA.getEmptyContextEdgeMap()Gets an empty edge map initialized with the minimum and maximum context values allowed to be stored in this DFA.DFA.getEmptyEdgeMap()Gets an empty edge map initialized with the minimum and maximum symbol values allowed to be stored in this DFA.Methods in org.antlr.v4.runtime.dfa with parameters of type DFAStateModifier and TypeMethodDescription(package private) StringDFASerializer.getStateString(DFAState s) voidDFAState.setContextTarget(int invokingState, DFAState target) final voidDFA.setPrecedenceStartState(int precedence, boolean fullContext, DFAState startState) Set the start state for a specific precedence value.final voidMethod parameters in org.antlr.v4.runtime.dfa with type arguments of type DFAStateModifier and TypeMethodDescriptionprivate static Object[]DFAState.directValuesOf(AbstractEdgeMap<DFAState> edgeMap) Constructor parameters in org.antlr.v4.runtime.dfa with type arguments of type DFAStateModifierConstructorDescriptionDFAState(EmptyEdgeMap<DFAState> emptyEdges, EmptyEdgeMap<DFAState> emptyContextEdges, ATNConfigSet configs) Constructs a newDFAStatewith explicit initial values for the outgoing edge and context edge maps. -
Uses of DFAState in org.antlr.v4.tool
Methods in org.antlr.v4.tool with parameters of type DFAState