Uses of Class
org.antlr.v4.runtime.atn.SimulatorState
Packages that use SimulatorState
-
Uses of SimulatorState in org.antlr.v4.runtime
Methods in org.antlr.v4.runtime with parameters of type SimulatorStateModifier and TypeMethodDescriptionvoidBaseErrorListener.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 SimulatorState in org.antlr.v4.runtime.atn
Fields in org.antlr.v4.runtime.atn declared as SimulatorStateModifier and TypeFieldDescriptionprotected SimulatorStateProfilingATNSimulator.currentStatefinal SimulatorStateDecisionEventInfo.stateThe simulator state containing additional information relevant to the prediction state when the current event occurred, ornullif no additional information is relevant or available.Methods in org.antlr.v4.runtime.atn that return SimulatorStateModifier and TypeMethodDescriptionprotected 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) ProfilingATNSimulator.getCurrentState()Simulator position for the prediction most recently in flight (or just completed).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) Methods in org.antlr.v4.runtime.atn with parameters of type SimulatorStateModifier and TypeMethodDescriptionprotected SimulatorStateParserATNSimulator.computeReachSet(DFA dfa, SimulatorState previous, int t, PredictionContextCache contextCache) protected SimulatorStateProfilingATNSimulator.computeReachSet(DFA dfa, SimulatorState previous, int t, PredictionContextCache contextCache) 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 IntegerParserATNSimulator.findFirstValidAltUsingPredicates(TokenStream input, int startIndex, SimulatorState previous, BitSet alts, SemanticContext[] altToPred) protected intParserATNSimulator.handleNoViableAlt(TokenStream input, int startIndex, SimulatorState previous) This method is used to improve the localization of error messages by choosing an alternative rather than throwing aNoViableAltExceptionin particular prediction scenarios where theATNSimulator.ERRORstate was reached during ATN simulation.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) Constructors in org.antlr.v4.runtime.atn with parameters of type SimulatorStateModifierConstructorDescriptionAmbiguityInfo(int decision, SimulatorState state, BitSet ambigAlts, TokenStream input, int startIndex, int stopIndex) Constructs a new instance of theAmbiguityInfoclass with the specified detailed ambiguity information.ContextSensitivityInfo(int decision, SimulatorState state, TokenStream input, int startIndex, int stopIndex) Constructs a new instance of theContextSensitivityInfoclass with the specified detailed context sensitivity information.DecisionEventInfo(int decision, SimulatorState state, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) ErrorInfo(int decision, SimulatorState state, TokenStream input, int startIndex, int stopIndex) Constructs a new instance of theErrorInfoclass with the specified detailed syntax error information.LookaheadEventInfo(int decision, SimulatorState state, int predictedAlt, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) Constructs a new instance of theLookaheadEventInfoclass with the specified detailed lookahead information.PredicateEvalInfo(SimulatorState state, int decision, TokenStream input, int startIndex, int stopIndex, SemanticContext semctx, boolean evalResult, int predictedAlt) Constructs a new instance of thePredicateEvalInfoclass with the specified detailed predicate evaluation information.