Top Fields Constructors Methods
org.antlr.v4.runtime.atn

public abstract Class ATNSimulator

extends Object
Class Inheritance
Known Direct Subclasses
org.antlr.v4.runtime.atn.LexerATNSimulator, org.antlr.v4.runtime.atn.ParserATNSimulator
Imports
org.antlr.v4.runtime.dfa.DFAState, .EmptyEdgeMap, org.antlr.v4.runtime.misc.IntervalSet, .NotNull, java.util.List, .UUID

Field Summary

Modifier and TypeField and Description
public final ATN
public static final DFAState
ERROR

Must distinguish between missing edge and edge we know leads nowhere

public static final String
public static final String
public static final char
public static final UUID
SERIALIZED_UUID

This is the current serialized UUID.

public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
checkCondition(boolean condition)

Deprecated Use ATNDeserializer#checkCondition(boolean) instead.
public static void
checkCondition(boolean condition, String message)

public void
clearDFA()

Clear the DFA cache used by the current instance.

public static ATN
deserialize(char[] data)

Deprecated Use ATNDeserializer#deserialize instead.
public static Transition
edgeFactory(ATN atn, int type, int src, int trg, int arg1, int arg2, int arg3, List<IntervalSet> sets)

Deprecated Use ATNDeserializer#edgeFactory instead.
public abstract void
public static ATNState
stateFactory(int type, int ruleIndex)

Deprecated Use ATNDeserializer#stateFactory instead.
public static int
toInt(char c)

Deprecated Use ATNDeserializer#toInt instead.
public static int
toInt32(char[] data, int offset)

Deprecated Use ATNDeserializer#toInt32 instead.
public static long
toLong(char[] data, int offset)

Deprecated Use ATNDeserializer#toLong instead.
public static UUID
toUUID(char[] data, int offset)

Deprecated Use ATNDeserializer#toUUID instead.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

atnback to summary
public final ATN atn
Annotations
@NotNull
ERRORback to summary
public static final DFAState ERROR

Must distinguish between missing edge and edge we know leads nowhere

Annotations
@NotNull
RULE_LF_VARIANT_MARKERback to summary
public static final String RULE_LF_VARIANT_MARKER
RULE_NOLF_VARIANT_MARKERback to summary
public static final String RULE_NOLF_VARIANT_MARKER
RULE_VARIANT_DELIMITERback to summary
public static final char RULE_VARIANT_DELIMITER
SERIALIZED_UUIDback to summary
public static final UUID SERIALIZED_UUID

This is the current serialized UUID.

Annotations
@Deprecated
SERIALIZED_VERSIONback to summary
public static final int SERIALIZED_VERSION

Deprecated

Use ATNDeserializer#SERIALIZED_VERSION instead.

Annotations
@Deprecated

Constructor Detail

ATNSimulatorback to summary
public ATNSimulator(ATN atn)

Method Detail

checkConditionback to summary
public static void checkCondition(boolean condition)
Annotations
@Deprecated
checkConditionback to summary
public static void checkCondition(boolean condition, String message)
Annotations
@Deprecated
clearDFAback to summary
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.

Exceptions
UnsupportedOperationException:
if the current instance does not support clearing the DFA.
Since
4.3
deserializeback to summary
public static ATN deserialize(char[] data)

Deprecated

Use ATNDeserializer#deserialize instead.

Annotations
@Deprecated
edgeFactoryback to summary
public static Transition edgeFactory(ATN atn, int type, int src, int trg, int arg1, int arg2, int arg3, List<IntervalSet> sets)

Deprecated

Use ATNDeserializer#edgeFactory instead.

Annotations
@Deprecated
@NotNull
resetback to summary
public abstract void reset()
stateFactoryback to summary
public static ATNState stateFactory(int type, int ruleIndex)

Deprecated

Use ATNDeserializer#stateFactory instead.

Annotations
@Deprecated
toIntback to summary
public static int toInt(char c)

Deprecated

Use ATNDeserializer#toInt instead.

Annotations
@Deprecated
toInt32back to summary
public static int toInt32(char[] data, int offset)

Deprecated

Use ATNDeserializer#toInt32 instead.

Annotations
@Deprecated
toLongback to summary
public static long toLong(char[] data, int offset)

Deprecated

Use ATNDeserializer#toLong instead.

Annotations
@Deprecated
toUUIDback to summary
public static UUID toUUID(char[] data, int offset)

Deprecated

Use ATNDeserializer#toUUID instead.

Annotations
@Deprecated