Top Interfaces Classes Enums
[default module]

Package org.antlr.v4.runtime.atn


Interface Summary

Modifier and TypeInterface and Description
public interface
LexerAction

Represents a single action which can be executed following the successful match of a lexer rule.

Class Summary

Modifier and TypeClass and Description
public abstract class
public class
public class
AmbiguityInfo

This class represents profiling event information for an ambiguity.

public class
public class
public class
ATNConfig

A tuple: (ATN state, predicted alt, syntactic, semantic context).

public class
ATNConfigSet

Specialized Set<ATNConfig> that can track info about the set, with support for combining similar configurations using a graph-structured stack.

public class
public class
ATNDeserializer

Deserialize ATNs for JavaTarget; it's complicated by the fact that java requires that we serialize the list of integers as 16 bit characters in a string.

public class
ATNSerializer

This class represents a target neutral serializer for ATNs.

public abstract class
public abstract class
ATNState

The following images show the relation of states and ATNState#transitions for various grammar constructs.

public class
AtomTransition

TODO: make all transitions sets?

public class
public class
public class
BlockEndState

Terminal node of a simple (a|b|c) block.

public abstract class
BlockStartState

The start of a regular (...) block.

public abstract class
CodePointTransitions

Utility class to create AtomTransition, RangeTransition, and SetTransition appropriately based on the range of the input.

public class
ContextSensitivityInfo

This class represents profiling event information for a context sensitivity.

public class
DecisionEventInfo

This is the base class for gathering detailed information about prediction events which occur during parsing.

public class
DecisionInfo

This class contains profiling gathered for a particular decision.

public abstract class
public class
public class
public class
ErrorInfo

This class represents profiling event information for a syntax error identified during prediction.

public class
LexerActionExecutor

Represents an executor for a sequence of lexer actions which traversed during the matching operation of a lexer rule (token).

public class
public class
LexerATNSimulator

"dup" of ParserInterpreter

public class
LexerChannelAction

Implements the channel lexer action by calling Lexer#setChannel with the assigned channel.

public class
LexerCustomAction

Executes a custom lexer action by calling Recognizer#action with the rule and action indexes assigned to the custom action.

public class
LexerIndexedCustomAction

This implementation of LexerAction is used for tracking input offsets for position-dependent actions within a LexerActionExecutor.

public class
LexerModeAction

Implements the mode lexer action by calling Lexer#mode with the assigned mode.

public class
LexerMoreAction

Implements the more lexer action by calling Lexer#more.

public class
LexerPopModeAction

Implements the popMode lexer action by calling Lexer#popMode.

public class
LexerPushModeAction

Implements the pushMode lexer action by calling Lexer#pushMode with the assigned mode.

public class
LexerSkipAction

Implements the skip lexer action by calling Lexer#skip.

public class
LexerTypeAction

Implements the type lexer action by calling Lexer#setType with the assigned type.

public class
public class
LookaheadEventInfo

This class represents profiling event information for tracking the lookahead depth required in order to make a prediction.

public class
LoopEndState

Mark the end of a * or + loop.

public class
public class
public class
ParseInfo

This class provides access to specific and aggregate statistics gathered during profiling of a parser.

public class
ParserATNSimulator

The embodiment of the adaptive LL(*), ALL(*), parsing strategy.

public class
PlusBlockStartState

Start of (A|B|...)+ loop.

public class
PlusLoopbackState

Decision state for A+ and (A|B)+.

public class
public class
PredicateEvalInfo

This class represents profiling event information for semantic predicate evaluations which occur during prediction.

public class
PredicateTransition

TODO: this is old comment: A tree of semantic predicates from the grammar AST if label==SEMPRED.

public abstract class
public class
public class
public class
public class
public class
RuleStopState

The last node in the ATN for a rule, unless that rule is the start symbol.

public class
public abstract class
SemanticContext

A tree structure used to record the semantic context in which an ATN configuration is valid.

public class
SetTransition

A transition containing a set of values.

public class
public class
StarBlockStartState

The block that begins a closure loop.

public class
public class
public class
TokensStartState

The Tokens rule start state linking to each lexer rule start state

public abstract class
Transition

An ATN transition between any two ATN states.

public class

Enum Summary

Modifier and TypeEnum and Description
public enum
ATNType

Represents the type of recognizer an ATN applies to.

public enum
LexerActionType

Represents the serialization type of a LexerAction.

public enum
PredictionMode

This enumeration defines the prediction modes available in ANTLR 4 along with utility methods for analyzing configuration sets for conflicts and/or ambiguities.