Package org.antlr.v4.runtime.atn
Class PredictionContextCache.ChildKeyProbe
java.lang.Object
org.antlr.v4.runtime.atn.PredictionContextCache.ChildKey
org.antlr.v4.runtime.atn.PredictionContextCache.ChildKeyProbe
- Enclosing class:
- PredictionContextCache
private static final class PredictionContextCache.ChildKeyProbe
extends PredictionContextCache.ChildKey
Mutable probe for
PredictionContextCache.getChild(org.antlr.v4.runtime.atn.PredictionContext, int) lookups. Package-private and not a
PredictionContextCache.PredictionContextAndInt, so it cannot be passed to
Map.put(K, V) on Map<ChildKey, …> only through an erroneous
cast — and the cache never exposes the map.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidclear()(package private) PredictionContextcontext()(package private) int(package private) voidset(PredictionContext obj, int value) Methods inherited from class org.antlr.v4.runtime.atn.PredictionContextCache.ChildKey
equals, hashCode
-
Field Details
-
obj
-
value
private int value
-
-
Constructor Details
-
ChildKeyProbe
private ChildKeyProbe()
-
-
Method Details
-
set
-
clear
void clear() -
context
PredictionContext context()- Specified by:
contextin classPredictionContextCache.ChildKey
-
invokingState
int invokingState()- Specified by:
invokingStatein classPredictionContextCache.ChildKey
-