SingletonPredictionContext class

Inheritance
Implementers

Constructors

SingletonPredictionContext(PredictionContext? parent, int returnState)

Properties

cachedHashCode int
Stores the computed hash code of this PredictionContext. The hash code is computed in parts to match the following reference algorithm.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pairinherited
isEmpty bool
This means only the {@link #EMPTY} (wildcard? not sure) context is in set.
no setterinherited
length int
no setteroverride
parent PredictionContext?
final
returnState int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getParent(int index) PredictionContext?
override
getReturnState(int index) int
override
hasEmptyPath() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toStrings(Recognizer<ATNSimulator>? recognizer, PredictionContext stop, int currentState) List<String>
inherited

Operators

operator ==(Object o) bool
The equality operator.
override

Static Methods

create(PredictionContext? parent, int returnState) SingletonPredictionContext