Package org.antlr.v4.runtime.atn
Class ArrayPredictionContext
java.lang.Object
org.antlr.v4.runtime.atn.PredictionContext
org.antlr.v4.runtime.atn.ArrayPredictionContext
-
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
ConstructorsConstructorDescriptionArrayPredictionContext(PredictionContext[] parents, int[] returnStates) ArrayPredictionContext(PredictionContext[] parents, int[] returnStates, int hashCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected PredictionContextappendContext(PredictionContext suffix, PredictionContextCache contextCache) private static PredictionContextappendContext(PredictionContext context, PredictionContext suffix, PredictionContext.IdentityHashMap visited) booleanprivate booleanequals(ArrayPredictionContext other, Set<PredictionContextCache.IdentityCommutativePredictionContextOperands> visited) intfindReturnState(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
-
parents
-
returnStates
-
-
Constructor Details
-
ArrayPredictionContext
ArrayPredictionContext(@NotNull PredictionContext[] parents, int[] returnStates) -
ArrayPredictionContext
ArrayPredictionContext(@NotNull PredictionContext[] parents, int[] returnStates, int hashCode)
-
-
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
-
addEmptyContext
- Specified by:
addEmptyContextin classPredictionContext
-
removeEmptyContext
- Specified by:
removeEmptyContextin classPredictionContext
-
appendContext
public PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache) - Specified by:
appendContextin classPredictionContext
-
appendContext
private static PredictionContext appendContext(PredictionContext context, PredictionContext suffix, PredictionContext.IdentityHashMap visited) -
equals
- Specified by:
equalsin classPredictionContext
-
equals
private boolean equals(ArrayPredictionContext other, Set<PredictionContextCache.IdentityCommutativePredictionContextOperands> visited)
-