Uses of Class
org.antlr.v4.runtime.dfa.DFA
Packages that use DFA
Package
Description
-
Uses of DFA in org.antlr.v4.runtime
Methods in org.antlr.v4.runtime with parameters of type DFAModifier and TypeMethodDescriptionDiagnosticErrorListener.getDecisionDescription(Parser recognizer, DFA dfa) 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) voidBaseErrorListener.reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, SimulatorState conflictState) voidDiagnosticErrorListener.reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, SimulatorState conflictState) voidParserErrorListener.reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, SimulatorState conflictState) This method is called when an SLL conflict occurs and the parser is about to use the full context information to make an LL decision.voidProxyParserErrorListener.reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, SimulatorState conflictState) voidBaseErrorListener.reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction, SimulatorState acceptState) voidDiagnosticErrorListener.reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction, SimulatorState acceptState) voidParserErrorListener.reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction, SimulatorState acceptState) This method is called by the parser when a full-context prediction has a unique result.voidProxyParserErrorListener.reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction, SimulatorState acceptState) -
Uses of DFA in org.antlr.v4.runtime.atn
Fields in org.antlr.v4.runtime.atn declared as DFAModifier and TypeFieldDescriptionDFA[]ATN.decisionToDFAprivate DFAParserATNSimulator.dfaDFA[]ATN.modeToDFAMethods in org.antlr.v4.runtime.atn that return DFAModifier and TypeMethodDescriptionfinal DFA[]ATN.getDecisionToDFA()final DFALexerATNSimulator.getDFA(int mode) (package private) final DFAParserATNSimulator.getDfaForClosure()Current DFA under construction during prediction, if any.Methods in org.antlr.v4.runtime.atn with parameters of type DFAModifier and TypeMethodDescriptionprotected 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.protected SimulatorStateParserATNSimulator.computeReachSet(DFA dfa, SimulatorState previous, int t, PredictionContextCache contextCache) protected SimulatorStateProfilingATNSimulator.computeReachSet(DFA dfa, SimulatorState previous, int t, PredictionContextCache contextCache) protected SimulatorStateParserATNSimulator.computeStartState(DFA dfa, ParserRuleContext globalContext, boolean useContext) protected SimulatorStateProfilingATNSimulator.computeStartState(DFA dfa, ParserRuleContext globalContext, boolean useContext) 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 DFAStateParserATNSimulator.createDFAState(DFA dfa, ATNConfigSet configs) protected intParserATNSimulator.execATN(DFA dfa, TokenStream input, int startIndex, SimulatorState initialState) Performs ATN simulation to compute a predicted alternative based upon the remaining input, but also updates the DFA cache to avoid having to traverse the ATN again for the same input sequence.protected intParserATNSimulator.execDFA(DFA dfa, TokenStream input, int startIndex, SimulatorState state) 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 SimulatorStateParserATNSimulator.getStartState(DFA dfa, TokenStream input, ParserRuleContext outerContext, boolean useContext) Local- or full-context DFA start, ornullif it is not yet built.protected SimulatorStateProfilingATNSimulator.getStartState(DFA dfa, TokenStream input, ParserRuleContext outerContext, 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) protected voidParserATNSimulator.reportAttemptingFullContext(DFA dfa, BitSet conflictingAlts, SimulatorState conflictState, int startIndex, int stopIndex) protected voidProfilingATNSimulator.reportAttemptingFullContext(DFA dfa, BitSet conflictingAlts, SimulatorState conflictState, int startIndex, int stopIndex) protected voidParserATNSimulator.reportContextSensitivity(DFA dfa, int prediction, SimulatorState acceptState, int startIndex, int stopIndex) protected voidProfilingATNSimulator.reportContextSensitivity(DFA dfa, int prediction, SimulatorState acceptState, int startIndex, int stopIndex) private intParserATNSimulator.tryPrecedenceLL1(TokenStream input, DFA dfa) Precedence LL(1) probe. -
Uses of DFA in org.antlr.v4.runtime.dfa
Fields in org.antlr.v4.runtime.dfa declared as DFAConstructors in org.antlr.v4.runtime.dfa with parameters of type DFAModifierConstructorDescriptionDFASerializer(DFA dfa, String[] tokenNames) Deprecated.DFASerializer(DFA dfa, String[] tokenNames, String[] ruleNames, ATN atn) Deprecated.UseDFASerializer(DFA, Vocabulary, String[], ATN)instead.DFASerializer(DFA dfa, Recognizer<?, ?> parser) DFASerializer(DFA dfa, Vocabulary vocabulary) DFASerializer(DFA dfa, Vocabulary vocabulary, String[] ruleNames, ATN atn) DFAState(DFA dfa, ATNConfigSet configs) Constructs a newDFAStatefor a DFA.LexerDFASerializer(DFA dfa) -
Uses of DFA in org.antlr.v4.tool
Fields in org.antlr.v4.tool with type parameters of type DFAMethods in org.antlr.v4.tool with parameters of type DFA
DFASerializer(DFA, Vocabulary)instead.