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 PredictionContextparentintreturnState-
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 SingletonPredictionContextcreate(PredictionContext parent, int returnState)booleanequals(Object o)PredictionContextgetParent(int index)intgetReturnState(int index)intsize()StringtoString()-
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:
sizein classPredictionContext
-
getParent
public PredictionContext getParent(int index)
- Specified by:
getParentin classPredictionContext
-
getReturnState
public int getReturnState(int index)
- Specified by:
getReturnStatein classPredictionContext
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classPredictionContext
-
-