Class ATNSimulator
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.atn.ATNSimulator
- Direct Known Subclasses:
LexerATNSimulator,ParserATNSimulator
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ATNstatic final DFAStateMust distinguish between missing edge and edge we know leads nowhereprotected final PredictionContextCacheThe context cache maps all PredictionContext objects that are equals() to a single cached copy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearDFA()Clear the DFA cache used by the current instance.getCachedContext(PredictionContext context) abstract voidreset()
-
Field Details
-
ERROR
Must distinguish between missing edge and edge we know leads nowhere -
atn
-
-
Constructor Details
-
ATNSimulator
-
-
Method Details
-
reset
public abstract void reset() -
clearDFA
public void clearDFA()Clear the DFA cache used by the current instance. Since the DFA cache may be shared by multiple ATN simulators, this method may affect the performance (but not accuracy) of other parsers which are being used concurrently.- Throws:
UnsupportedOperationException- if the current instance does not support clearing the DFA.- Since:
- 4.3
-
getCachedContext
-