Package com.javacc.preprocessor
Enum PreprocessorConstants.TokenType
- java.lang.Object
-
- java.lang.Enum<PreprocessorConstants.TokenType>
-
- com.javacc.preprocessor.PreprocessorConstants.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<PreprocessorConstants.TokenType>
- Enclosing interface:
- PreprocessorConstants
public static enum PreprocessorConstants.TokenType extends Enum<PreprocessorConstants.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description _TOKEN_23EOFINVALIDPP_ANDPP_ASSIGNPP_DEFINEPP_ELIFPP_ELSEPP_ENDIFPP_EOL_COMMENTPP_EQUALSPP_FALSEPP_FALSE_ALERTPP_IFPP_IGNORED_DIRECTIVEPP_LINEPP_LPARENPP_NOTPP_NOT_EQUALSPP_ORPP_RPARENPP_STARTPP_SYMBOLPP_TRUEPP_UNDEF
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreprocessorConstants.TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PreprocessorConstants.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EOF
public static final PreprocessorConstants.TokenType EOF
-
PP_LINE
public static final PreprocessorConstants.TokenType PP_LINE
-
PP_DEFINE
public static final PreprocessorConstants.TokenType PP_DEFINE
-
PP_UNDEF
public static final PreprocessorConstants.TokenType PP_UNDEF
-
PP_IF
public static final PreprocessorConstants.TokenType PP_IF
-
PP_ELIF
public static final PreprocessorConstants.TokenType PP_ELIF
-
PP_ELSE
public static final PreprocessorConstants.TokenType PP_ELSE
-
PP_ENDIF
public static final PreprocessorConstants.TokenType PP_ENDIF
-
PP_IGNORED_DIRECTIVE
public static final PreprocessorConstants.TokenType PP_IGNORED_DIRECTIVE
-
PP_START
public static final PreprocessorConstants.TokenType PP_START
-
PP_FALSE_ALERT
public static final PreprocessorConstants.TokenType PP_FALSE_ALERT
-
PP_TRUE
public static final PreprocessorConstants.TokenType PP_TRUE
-
PP_FALSE
public static final PreprocessorConstants.TokenType PP_FALSE
-
PP_SYMBOL
public static final PreprocessorConstants.TokenType PP_SYMBOL
-
PP_OR
public static final PreprocessorConstants.TokenType PP_OR
-
PP_AND
public static final PreprocessorConstants.TokenType PP_AND
-
PP_LPAREN
public static final PreprocessorConstants.TokenType PP_LPAREN
-
PP_RPAREN
public static final PreprocessorConstants.TokenType PP_RPAREN
-
PP_ASSIGN
public static final PreprocessorConstants.TokenType PP_ASSIGN
-
PP_EQUALS
public static final PreprocessorConstants.TokenType PP_EQUALS
-
PP_NOT_EQUALS
public static final PreprocessorConstants.TokenType PP_NOT_EQUALS
-
PP_NOT
public static final PreprocessorConstants.TokenType PP_NOT
-
PP_EOL_COMMENT
public static final PreprocessorConstants.TokenType PP_EOL_COMMENT
-
_TOKEN_23
public static final PreprocessorConstants.TokenType _TOKEN_23
-
INVALID
public static final PreprocessorConstants.TokenType INVALID
-
-
Method Detail
-
values
public static PreprocessorConstants.TokenType[] 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.TokenType c : PreprocessorConstants.TokenType.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.TokenType 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
-
-