Package org.antlr.v4.runtime.atn
Class SingletonPredictionContext
- java.lang.Object
-
- org.antlr.v4.runtime.atn.PredictionContext
-
- org.antlr.v4.runtime.atn.SingletonPredictionContext
-
- Direct Known Subclasses:
EmptyPredictionContext
public class SingletonPredictionContext extends PredictionContext
-
-
Field Summary
Fields Modifier and Type Field Description PredictionContext
parent
int
returnState
-
Fields inherited from class org.antlr.v4.runtime.atn.PredictionContext
cachedHashCode, EMPTY_RETURN_STATE, id
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SingletonPredictionContext
create(PredictionContext parent, int returnState)
boolean
equals(Object o)
PredictionContext
getParent(int index)
int
getReturnState(int index)
int
size()
String
toString()
-
Methods inherited from class org.antlr.v4.runtime.atn.PredictionContext
calculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes, getAllContextNodes_, getCachedContext, hasEmptyPath, hashCode, isEmpty, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStrings
-
-
-
-
Field Detail
-
parent
public final PredictionContext parent
-
returnState
public final int returnState
-
-
Method Detail
-
create
public static SingletonPredictionContext create(PredictionContext parent, int returnState)
-
size
public int size()
- Specified by:
size
in classPredictionContext
-
getParent
public PredictionContext getParent(int index)
- Specified by:
getParent
in classPredictionContext
-
getReturnState
public int getReturnState(int index)
- Specified by:
getReturnState
in classPredictionContext
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classPredictionContext
-
-