All Classes and Interfaces

Class
Description
This abstract base class is provided so performance-critical applications can use virtual- instead of interface-dispatch when calling comparator methods.
 
 
 
This class represents profiling event information for an ambiguity.
How to emit recognition errors.
The interface for defining strategies to deal with syntax errors encountered during a parse by ANTLR-generated parsers.
Deprecated.
as of 4.7 Please use CharStreams interface.
Deprecated.
as of 4.7 Please use CharStreams interface.
Set implementation with closed hashing (open addressing).
 
 
A tuple: (ATN state, predicted alt, syntactic, semantic context).
Specialized Set<ATNConfig> that can track info about the set, with support for combining similar configurations using a graph-structured stack.
 
 
The reason that we need this is because we don't want the hash map to use the standard hash code and equals.
 
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.
This class represents a target neutral serializer for ATNs.
 
The following images show the relation of states and ATNState.transitions for various grammar constructs.
Represents the type of recognizer an ATN applies to.
TODO: make all transitions sets? no, should remove set edges
This implementation of ANTLRErrorStrategy responds to syntax errors by immediately canceling the parse operation with a ParseCancellationException.
Provides an empty default implementation of ANTLRErrorListener.
 
 
Terminal node of a simple (a|b|c) block.
The start of a regular (...) block.
This implementation of TokenStream loads tokens from a TokenSource on-demand, and places the tokens in a buffer to provide access to any previous token by index.
A source of characters for an ANTLR lexer.
This class represents the primary interface for creating CharStreams from a variety of sources as of 4.7.
 
 
Alternative to ANTLRInputStream which treats the input as a series of Unicode code points, instead of a series of UTF-16 code units.
Utility class to create AtomTransition, RangeTransition, and SetTransition appropriately based on the range of the input.
 
This default implementation of TokenFactory creates CommonToken objects.
This class extends BufferedTokenStream with functionality to filter token streams to tokens on a particular channel (tokens where Token.getChannel() returns a particular value).
 
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.
 
This is the default implementation of ANTLRErrorStrategy used for error reporting and recovery in ANTLR parsers.
 
A DFA walker that knows how to dump them to serialized strings.
A DFA state represents a set of possible ATN configurations.
Map a predicate to a predicted alternative.
This implementation of ANTLRErrorListener can be used to identify certain potential correctness and performance problems in grammars.
Sometimes we need to map a key to a value but key is two pieces of data.
 
 
This interface provides an abstract concept of object equality independent of Object.equals(java.lang.Object) (object equality) and the == operator (reference equality).
This class represents profiling event information for a syntax error identified during prediction.
 
Represents a token that was consumed during resynchronization rather than during a valid match operation.
A semantic predicate failed during validation.
A limited map (many unsupported operations) that lets me use varying hashCode/equals.
 
This signifies any kind of mismatched input exceptions such as when the current input does not match the expected token.
 
 
 
 
This class extends ParserRuleContext by allowing the value of InterpreterRuleContext.getRuleIndex() to be explicitly set for the context.
An immutable inclusive interval a..b
This class implements the IntSet backed by a sorted array of non-overlapping intervals.
A generic set of integers.
A simple stream of symbols whose values are represented as integers.
An iterative (read: non-recursive) pre-order and post-order tree walker that doesn't use the thread stack but heap-based stacks.
A lexer is recognizer that draws input symbols from a character stream.
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 a LexerAction.
 
"dup" of ParserInterpreter
When we hit an accept state in either the DFA or the ATN, we have to notify the character stream to start buffering characters via IntStream.mark() and record the current state.
Implements the channel lexer action by calling Lexer.setChannel(int) with the assigned channel.
Executes a custom lexer action by calling Recognizer.action(org.graalvm.shadowed.org.antlr.v4.runtime.RuleContext, int, int) with the rule and action indexes assigned to the custom action.
 
This implementation of LexerAction is used for tracking input offsets for position-dependent actions within a LexerActionExecutor.
 
Implements the mode lexer action by calling Lexer.mode(int) with the assigned mode.
Implements the more lexer action by calling Lexer.more().
 
Implements the popMode lexer action by calling Lexer.popMode().
Implements the pushMode lexer action by calling Lexer.pushMode(int) with the assigned mode.
Implements the skip lexer action by calling Lexer.skip().
Implements the type lexer action by calling Lexer.setType(int) with the assigned type.
Provides an implementation of TokenSource as a wrapper around a list of Token objects.
 
 
 
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.
 
 
Deprecated.
THIS IS HERE FOR BACKWARD COMPATIBILITY WITH 4.5 ONLY.
 
Indicates that the parser could not decide which of two or more paths to take based upon the remaining input.
This default implementation of EqualityComparator uses object equality for comparisons by calling Object.hashCode() and Object.equals(java.lang.Object).
 
 
A HashMap that remembers the order that the elements were added.
 
This exception is thrown to cancel a parsing operation.
This class provides access to specific and aggregate statistics gathered during profiling of a parser.
This is all the parsing support code essentially; most of it is error recovery stuff.
 
The embodiment of the adaptive LL(*), ALL(*), parsing strategy.
A parser simulator that mimics what ANTLR's generated parser code does.
A rule invocation record for parsing.
An interface to access the tree of RuleContext objects created during a parse that makes the data structure look like a simple parse tree.
This interface describes the minimal core of methods triggered by ParseTreeWalker.
Represents the result of matching a ParseTree against a tree pattern.
A pattern like <ID> = <expr>; converted to a ParseTree by ParseTreePatternMatcher.compile(String, int).
A tree pattern matching mechanism for ANTLR ParseTrees.
 
 
Associate a property with a parse tree node.
This interface defines the basic notion of a parse tree visitor.
 
Start of (A|B|...)+ loop.
Decision state for A+ 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 cache PredictionContext objects.
This enumeration defines the prediction modes available in ANTLR 4 along with utility methods for analyzing configuration sets for conflicts and/or ambiguities.
 
This implementation of ANTLRErrorListener dispatches all calls to a collection of delegate listeners.
 
The root of the ANTLR exception hierarchy.
 
A rule context is a record of a single rule invocation.
A handy class for use with options {contextSuperClass=org.graalvm.shadowed.org.antlr.v4.runtime.RuleContextWithAltNum;} that provides a backing field / impl for the outer alternative number matched for an internal parse tree node.
 
 
The last node in the ATN for a rule, unless that rule is the start symbol.
A Token object representing an entire subtree matched by a parser rule; e.g., <expr>.
 
This class provides access to the current version of the ANTLR 4 runtime library as compile-time and runtime constants, along with methods for checking for matching version numbers and notifying listeners in the case where a version mismatch is detected.
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.
 
The block that begins a closure loop.
 
 
A tree that knows about an interval in a token stream is some kind of syntax tree.
 
 
Deprecated. 
A token has properties: text, type, line, character position in the line (so we can ignore tabs), token channel, index, and source from which we obtained this token.
The default mechanism for creating tokens.
A source of tokens must provide a sequence of tokens via TokenSource.nextToken() and also must reveal it's source of characters; CommonToken's text is computed from a CharStream; it only store indices into the char stream.
The Tokens rule start state linking to each lexer rule start state
An IntStream whose symbols are Token instances.
Useful for rewriting out a buffered input token stream after doing some augmentation or other manipulations on it.
A Token object representing a token of a particular type; e.g., <ID>.
An ATN transition between any two ATN states.
The basic notion of a tree has a parent, a payload, and a list of children.
A set of utility routines useful for all kinds of ANTLR trees.
 
Do not buffer up the entire char stream.
 
 
This interface provides information about the vocabulary used by a recognizer.
This class provides a default implementation of the Vocabulary interface.
 
 
Represent a subset of XPath XML path syntax for use in identifying nodes in parse trees.
 
Mimic the old XPathLexer from .g4 file
 
Either ID at start of path or ...//ID in middle of path.