Package org.antlr.v4.runtime.atn
Enum LexerActionType
- All Implemented Interfaces:
Serializable
,Comparable<LexerActionType>
,java.lang.constant.Constable
Represents the serialization type of a
LexerAction
.- Since:
- 4.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe type of aLexerChannelAction
action.The type of aLexerCustomAction
action.The type of aLexerModeAction
action.The type of aLexerMoreAction
action.The type of aLexerPopModeAction
action.The type of aLexerPushModeAction
action.The type of aLexerSkipAction
action.The type of aLexerTypeAction
action. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LexerActionType
Returns the enum constant of this type with the specified name.static LexerActionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CHANNEL
The type of aLexerChannelAction
action. -
CUSTOM
The type of aLexerCustomAction
action. -
MODE
The type of aLexerModeAction
action. -
MORE
The type of aLexerMoreAction
action. -
POP_MODE
The type of aLexerPopModeAction
action. -
PUSH_MODE
The type of aLexerPushModeAction
action. -
SKIP
The type of aLexerSkipAction
action. -
TYPE
The type of aLexerTypeAction
action.
-
-
Constructor Details
-
LexerActionType
private LexerActionType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-