Package org.antlr.v4.runtime.atn
package org.antlr.v4.runtime.atn
-
ClassDescriptionThis class represents profiling event information for an ambiguity.Represents a location with context in an ATN.This class was derived from
ATNConfigpurely as a memory optimization.This class was derived fromATNConfig.SemanticContextATNConfigpurely as a memory optimization.This class was derived fromATNConfigpurely as a memory optimization.Represents a set of ATN configurations (seeATNConfig).The following images show the relation of states andATNState.transitionsfor various grammar constructs.Represents the type of recognizer an ATN applies to.TODO: make all transitions sets? no, should remove set edgesTerminal node of a simple(a|b|c)block.The start of a regular(...)block.ClearableIntObjectHashMap<VType>Package-privateint → Vmap with O(1) emptyClearableIntObjectHashMap.clear().ClearableLongObjectHashMap<VType>Package-privatelong → Vopen-addressed map with O(1) emptyClearableLongObjectHashMap.clear(), used as the ATN config merge index.Utility class to createAtomTransition,RangeTransition, andSetTransitionappropriately based on the range of the input.Thread-safeint → intmap for rare-write / frequent-read workloads.JDKConcurrentMapview overConcurrentIntIntMap.This class stores information about a configuration conflict.This class represents profiling event information for a context sensitivity.This is the base class for gathering detailed information about prediction events which occur during parsing.This class contains profiling gathered for a particular decision.Epsilon-closure engine for adaptive LL(*) prediction.This class represents profiling event information for a syntax error identified during prediction.Represents a single action which can be executed following the successful match of a lexer rule.Represents an executor for a sequence of lexer actions which traversed during the matching operation of a lexer rule (token).Represents the serialization type of aLexerAction.ATN interpreter for lexers.When we hit an accept state in either the DFA or the ATN, we have to notify the character stream to start buffering characters viaIntStream.mark()and record the current state.Implements thechannellexer action by callingLexer.setChannel(int)with the assigned channel.Executes a custom lexer action by callingRecognizer.action(org.antlr.v4.runtime.RuleContext, int, int)with the rule and action indexes assigned to the custom action.This implementation ofLexerActionis used for tracking input offsets for position-dependent actions within aLexerActionExecutor.Implements themodelexer action by callingLexer.mode(int)with the assigned mode.Implements themorelexer action by callingLexer.more().Implements thepopModelexer action by callingLexer.popMode().Implements thepushModelexer action by callingLexer.pushMode(int)with the assigned mode.Implements theskiplexer action by callingLexer.skip().Implements thetypelexer action by callingLexer.setType(int)with the assigned type.This class represents profiling event information for tracking the lookahead depth required in order to make a prediction.Mark the end of a * or + loop.Package-private JDKSetover an open-addressed HPPC table with O(1) emptyOpenAddressedHashSet.clear().Lexer configuration set that merges configs only when they are fully equal (including prediction context and lexer actions), preserving first-match preference order among alternatives.This class provides access to specific and aggregate statistics gathered during profiling of a parser.The embodiment of the adaptive LL(*), ALL(*), parsing strategy.Start of(A|B|...)+loop.Decision state forA+and(A|B)+.This class represents profiling event information for semantic predicate evaluations which occur during prediction.TODO: this is old comment: A tree of semantic predicates from the grammar AST if label==SEMPRED.Used to cachePredictionContextobjects.Shared equality/hash contract for (PredictionContext,int) keys used byPredictionContextCache.getChild(org.antlr.v4.runtime.atn.PredictionContext, int).Mutable probe forPredictionContextCache.getChild(org.antlr.v4.runtime.atn.PredictionContext, int)lookups.Immutable identity-based commutative key for a pair ofPredictionContextinstances.Shared equality/hash contract for identity-based commutative pairs ofPredictionContextused byPredictionContextCache.join(org.antlr.v4.runtime.atn.PredictionContext, org.antlr.v4.runtime.atn.PredictionContext)and byArrayPredictionContextequality.This enumeration defines the prediction modes available in ANTLR 4 along with utility methods for analyzing configuration sets for conflicts and/or ambiguities.A Map that uses just the state and the stack context as the key.Package-private reach / target-state engine for adaptive LL(*) prediction.Random-access view of ATN configurations for a singleParserATNSimulator.computeTargetState(org.antlr.v4.runtime.dfa.DFA, org.antlr.v4.runtime.dfa.DFAState, org.antlr.v4.runtime.ParserRuleContext, int, boolean, org.antlr.v4.runtime.atn.PredictionContextCache)invocation.Lazily allocated, capacity-preserving scratchATNConfigSetfor prediction and lexing hot paths.The last node in the ATN for a rule, unless that rule is the start symbol.A tree structure used to record the semantic context in which an ATN configuration is valid.A semantic context which is true whenever none of the contained contexts is false.This is the base class for semantic context "operators", which operate on a collection of semantic context "operands".A semantic context which is true whenever at least one of the contained contexts is true.A transition containing a set of values.Immutable snapshot of DFA simulation position forParserATNSimulator.execDFA(org.antlr.v4.runtime.dfa.DFA, org.antlr.v4.runtime.TokenStream, int, org.antlr.v4.runtime.atn.SimulatorState)/ParserATNSimulator.execATN(org.antlr.v4.runtime.dfa.DFA, org.antlr.v4.runtime.TokenStream, int, org.antlr.v4.runtime.atn.SimulatorState).The block that begins a closure loop.The Tokens rule start state linking to each lexer rule start stateAn ATN transition between any two ATN states.