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 CHANNELThe type of aLexerChannelActionaction.CUSTOMThe type of aLexerCustomActionaction.MODEThe type of aLexerModeActionaction.MOREThe type of aLexerMoreActionaction.POP_MODEThe type of aLexerPopModeActionaction.PUSH_MODEThe type of aLexerPushModeActionaction.SKIPThe type of aLexerSkipActionaction.TYPEThe type of aLexerTypeActionaction.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LexerActionTypevalueOf(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 aLexerChannelActionaction.
-
CUSTOM
public static final LexerActionType CUSTOM
The type of aLexerCustomActionaction.
-
MODE
public static final LexerActionType MODE
The type of aLexerModeActionaction.
-
MORE
public static final LexerActionType MORE
The type of aLexerMoreActionaction.
-
POP_MODE
public static final LexerActionType POP_MODE
The type of aLexerPopModeActionaction.
-
PUSH_MODE
public static final LexerActionType PUSH_MODE
The type of aLexerPushModeActionaction.
-
SKIP
public static final LexerActionType SKIP
The type of aLexerSkipActionaction.
-
TYPE
public static final LexerActionType TYPE
The type of aLexerTypeActionaction.
-
-
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
-
-