Package org.antlr.v4.runtime.atn
Class SingletonPredictionContext
java.lang.Object
org.antlr.v4.runtime.atn.PredictionContext
org.antlr.v4.runtime.atn.SingletonPredictionContext
-
Nested Class Summary
Nested classes/interfaces inherited from class org.antlr.v4.runtime.atn.PredictionContext
PredictionContext.IdentityEqualityComparator, PredictionContext.IdentityHashMap -
Field Summary
FieldsFields inherited from class org.antlr.v4.runtime.atn.PredictionContext
EMPTY_FULL, EMPTY_FULL_STATE_KEY, EMPTY_LOCAL, EMPTY_LOCAL_STATE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PredictionContextappendContext(PredictionContext suffix, PredictionContextCache contextCache) booleanintfindReturnState(int returnState) getParent(int index) intgetReturnState(int index) booleanhasEmpty()booleanisEmpty()protected PredictionContextintsize()Methods inherited from class org.antlr.v4.runtime.atn.PredictionContext
appendContext, calculateEmptyHashCode, calculateHashCode, calculateHashCode, fromRuleContext, fromRuleContext, getCachedContext, getChild, hashCode, isEmptyLocal, join, join, toStrings, toStrings
-
Field Details
-
parent
-
returnState
public final int returnState
-
-
Constructor Details
-
SingletonPredictionContext
SingletonPredictionContext(@NotNull PredictionContext parent, int returnState)
-
-
Method Details
-
getParent
- Specified by:
getParentin classPredictionContext
-
getReturnState
public int getReturnState(int index) - Specified by:
getReturnStatein classPredictionContext
-
findReturnState
public int findReturnState(int returnState) - Specified by:
findReturnStatein classPredictionContext
-
size
public int size()- Specified by:
sizein classPredictionContext
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classPredictionContext
-
hasEmpty
public boolean hasEmpty()- Specified by:
hasEmptyin classPredictionContext
-
appendContext
public PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache) - Specified by:
appendContextin classPredictionContext
-
addEmptyContext
- Specified by:
addEmptyContextin classPredictionContext
-
removeEmptyContext
- Specified by:
removeEmptyContextin classPredictionContext
-
equals
- Specified by:
equalsin classPredictionContext
-