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 EmptyPredictionContext
Instance
Represents$
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 boolean
equals(Object o)
PredictionContext
getParent(int index)
int
getReturnState(int index)
boolean
isEmpty()
This means only theInstance
(wildcard? not sure) context is in set.int
size()
String
toString()
-
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:PredictionContext
This means only theInstance
(wildcard? not sure) context is in set.- Overrides:
isEmpty
in classPredictionContext
-
size
public int size()
- Overrides:
size
in classSingletonPredictionContext
-
getParent
public PredictionContext getParent(int index)
- Overrides:
getParent
in classSingletonPredictionContext
-
getReturnState
public int getReturnState(int index)
- Overrides:
getReturnState
in classSingletonPredictionContext
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSingletonPredictionContext
-
toString
public String toString()
- Overrides:
toString
in classSingletonPredictionContext
-
-