Package org.antlr.v4.runtime.atn
Enum LexerActionType
- java.lang.Object
-
- java.lang.Enum<LexerActionType>
-
- org.antlr.v4.runtime.atn.LexerActionType
-
- All Implemented Interfaces:
Serializable
,Comparable<LexerActionType>
public enum LexerActionType extends Enum<LexerActionType>
Represents the serialization type of aLexerAction
.- Since:
- 4.2
- Author:
- Sam Harwell
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LexerActionType
valueOf(String name)
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 Detail
-
CHANNEL
public static final LexerActionType CHANNEL
The type of aLexerChannelAction
action.
-
CUSTOM
public static final LexerActionType CUSTOM
The type of aLexerCustomAction
action.
-
MODE
public static final LexerActionType MODE
The type of aLexerModeAction
action.
-
MORE
public static final LexerActionType MORE
The type of aLexerMoreAction
action.
-
POP_MODE
public static final LexerActionType POP_MODE
The type of aLexerPopModeAction
action.
-
PUSH_MODE
public static final LexerActionType PUSH_MODE
The type of aLexerPushModeAction
action.
-
SKIP
public static final LexerActionType SKIP
The type of aLexerSkipAction
action.
-
TYPE
public static final LexerActionType TYPE
The type of aLexerTypeAction
action.
-
-
Method Detail
-
values
public static LexerActionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LexerActionType c : LexerActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LexerActionType valueOf(String name)
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
-
-