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