PredictionContextCache

Used to cache {@link PredictionContext} objects.

Its used for the shared context objects associated with contexts in DFA states. This cache can be used for both lexers and parsers.

Members

Functions

add
PredictionContext add(PredictionContext predictionContext)

Add a context to the cache and return it.

get
PredictionContext get(PredictionContext predictionContext)

Get the predictionContext from cache.

hasKey
bool hasKey(PredictionContext predictionContext)

Contains the cache the predictionContext?

size
size_t size()

Size of current cache.

Variables

cache
PredictionContext[PredictionContext] cache;
Undocumented in source.

Meta