Package org.antlr.v4.runtime.atn
Class EmptyPredictionContext
java.lang.Object
org.antlr.v4.runtime.atn.PredictionContext
org.antlr.v4.runtime.atn.EmptyPredictionContext
-
Nested Class Summary
Nested classes/interfaces inherited from class org.antlr.v4.runtime.atn.PredictionContext
PredictionContext.IdentityEqualityComparator, PredictionContext.IdentityHashMap -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmptyPredictionContextprivate final booleanstatic final EmptyPredictionContextFields 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(int returnContext, PredictionContextCache contextCache) appendContext(PredictionContext suffix, PredictionContextCache contextCache) booleanintfindReturnState(int returnState) getParent(int index) intgetReturnState(int index) booleanhasEmpty()booleanisEmpty()booleanprotected PredictionContextintsize()String[]toStrings(Recognizer<?, ?> recognizer, int currentState) String[]toStrings(Recognizer<?, ?> recognizer, PredictionContext stop, int currentState) Methods inherited from class org.antlr.v4.runtime.atn.PredictionContext
calculateEmptyHashCode, calculateHashCode, calculateHashCode, fromRuleContext, fromRuleContext, getCachedContext, getChild, hashCode, isEmptyLocal, join, join
-
Field Details
-
LOCAL_CONTEXT
-
FULL_CONTEXT
-
fullContext
private final boolean fullContext
-
-
Constructor Details
-
EmptyPredictionContext
private EmptyPredictionContext(boolean fullContext)
-
-
Method Details
-
isFullContext
public boolean isFullContext() -
addEmptyContext
- Specified by:
addEmptyContextin classPredictionContext
-
removeEmptyContext
- Specified by:
removeEmptyContextin classPredictionContext
-
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
-
appendContext
- Overrides:
appendContextin classPredictionContext
-
appendContext
public PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache) - Specified by:
appendContextin classPredictionContext
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classPredictionContext
-
hasEmpty
public boolean hasEmpty()- Specified by:
hasEmptyin classPredictionContext
-
equals
- Specified by:
equalsin classPredictionContext
-
toStrings
- Overrides:
toStringsin classPredictionContext
-
toStrings
- Overrides:
toStringsin classPredictionContext
-