Class ArrayPredictionContext
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.atn.PredictionContext
org.graalvm.shadowed.org.antlr.v4.runtime.atn.ArrayPredictionContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal PredictionContext[]Parent can be null only if full ctx mode and we make an array fromand non-empty.invalid reference
#EMPTYfinal int[]Sorted for merge, no duplicates; if present,PredictionContext.EMPTY_RETURN_STATEis always last.Fields inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.atn.PredictionContext
cachedHashCode, EMPTY_RETURN_STATE, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetParent(int index) intgetReturnState(int index) booleanisEmpty()This means only theEmptyPredictionContext.Instance(wildcard? not sure) context is in set.intsize()toString()Methods inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.atn.PredictionContext
calculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes, getAllContextNodes_, getCachedContext, hasEmptyPath, hashCode, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStrings
-
Field Details
-
parents
Parent can be null only if full ctx mode and we make an array fromand non-empty. We mergeinvalid reference
#EMPTYby using null parent and returnState ==invalid reference
#EMPTYPredictionContext.EMPTY_RETURN_STATE. -
returnStates
public final int[] returnStatesSorted for merge, no duplicates; if present,PredictionContext.EMPTY_RETURN_STATEis always last.
-
-
Constructor Details
-
ArrayPredictionContext
-
ArrayPredictionContext
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from class:PredictionContextThis means only theEmptyPredictionContext.Instance(wildcard? not sure) context is in set.- Overrides:
isEmptyin classPredictionContext
-
size
public int size()- Specified by:
sizein classPredictionContext
-
getParent
- Specified by:
getParentin classPredictionContext
-
getReturnState
public int getReturnState(int index) - Specified by:
getReturnStatein classPredictionContext
-
equals
- Specified by:
equalsin classPredictionContext
-
toString
-