public class SingletonPredictionContext extends PredictionContext
| Modifier and Type | Field and Description |
|---|---|
PredictionContext |
parent |
int |
returnState |
cachedHashCode, EMPTY, EMPTY_RETURN_STATE, globalNodeCount, id| Modifier and Type | Method and Description |
|---|---|
static SingletonPredictionContext |
create(PredictionContext parent,
int returnState) |
boolean |
equals(java.lang.Object o) |
PredictionContext |
getParent(int index) |
int |
getReturnState(int index) |
int |
size() |
java.lang.String |
toString() |
calculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes_, getAllContextNodes, getCachedContext, hasEmptyPath, hashCode, isEmpty, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStringspublic final PredictionContext parent
public final int returnState
public static SingletonPredictionContext create(PredictionContext parent, int returnState)
public int size()
size in class PredictionContextpublic PredictionContext getParent(int index)
getParent in class PredictionContextpublic int getReturnState(int index)
getReturnState in class PredictionContextpublic boolean equals(java.lang.Object o)
equals in class PredictionContextpublic java.lang.String toString()
toString in class java.lang.Object