Package org.antlr.v4.runtime.atn
Class EmptyPredictionContext
- java.lang.Object
-
- org.antlr.v4.runtime.atn.PredictionContext
-
- org.antlr.v4.runtime.atn.SingletonPredictionContext
-
- org.antlr.v4.runtime.atn.EmptyPredictionContext
-
public class EmptyPredictionContext extends SingletonPredictionContext
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyPredictionContextInstanceRepresents$in local context prediction, which means wildcard.-
Fields inherited from class org.antlr.v4.runtime.atn.SingletonPredictionContext
parent, returnState
-
Fields inherited from class org.antlr.v4.runtime.atn.PredictionContext
cachedHashCode, EMPTY_RETURN_STATE, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)PredictionContextgetParent(int index)intgetReturnState(int index)booleanisEmpty()This means only theInstance(wildcard? not sure) context is in set.intsize()StringtoString()-
Methods inherited from class org.antlr.v4.runtime.atn.SingletonPredictionContext
create
-
Methods inherited from class 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 Detail
-
Instance
public static final EmptyPredictionContext Instance
Represents$in local context prediction, which means wildcard.*+x = *.
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from class:PredictionContextThis means only theInstance(wildcard? not sure) context is in set.- Overrides:
isEmptyin classPredictionContext
-
size
public int size()
- Overrides:
sizein classSingletonPredictionContext
-
getParent
public PredictionContext getParent(int index)
- Overrides:
getParentin classSingletonPredictionContext
-
getReturnState
public int getReturnState(int index)
- Overrides:
getReturnStatein classSingletonPredictionContext
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSingletonPredictionContext
-
toString
public String toString()
- Overrides:
toStringin classSingletonPredictionContext
-
-