Package com.javacc.preprocessor
Enum PreprocessorConstants.LexicalState
- java.lang.Object
-
- java.lang.Enum<PreprocessorConstants.LexicalState>
-
- com.javacc.preprocessor.PreprocessorConstants.LexicalState
-
- All Implemented Interfaces:
Serializable,Comparable<PreprocessorConstants.LexicalState>
- Enclosing interface:
- PreprocessorConstants
public static enum PreprocessorConstants.LexicalState extends Enum<PreprocessorConstants.LexicalState>
Lexical States
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PP_DIRECTIVEPP_EAT_TO_EOLPP_SCAN_LINES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreprocessorConstants.LexicalStatevalueOf(String name)Returns the enum constant of this type with the specified name.static PreprocessorConstants.LexicalState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PP_SCAN_LINES
public static final PreprocessorConstants.LexicalState PP_SCAN_LINES
-
PP_EAT_TO_EOL
public static final PreprocessorConstants.LexicalState PP_EAT_TO_EOL
-
PP_DIRECTIVE
public static final PreprocessorConstants.LexicalState PP_DIRECTIVE
-
-
Method Detail
-
values
public static PreprocessorConstants.LexicalState[] 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 (PreprocessorConstants.LexicalState c : PreprocessorConstants.LexicalState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PreprocessorConstants.LexicalState 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
-
-