Package types
Enum TokenType
- java.lang.Object
-
- java.lang.Enum<TokenType>
-
- types.TokenType
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER_TOKEN
public static final TokenType INTEGER_TOKEN
-
DOUBLE_TOKEN
public static final TokenType DOUBLE_TOKEN
-
BOOLEAN_TOKEN
public static final TokenType BOOLEAN_TOKEN
-
STRING_TOKEN
public static final TokenType STRING_TOKEN
-
IDENTIFIER_TOKEN
public static final TokenType IDENTIFIER_TOKEN
-
IF_TOKEN
public static final TokenType IF_TOKEN
-
ELSE_TOKEN
public static final TokenType ELSE_TOKEN
-
LOOP_TOKEN
public static final TokenType LOOP_TOKEN
-
TO_TOKEN
public static final TokenType TO_TOKEN
-
AND_TOKEN
public static final TokenType AND_TOKEN
-
OR_TOKEN
public static final TokenType OR_TOKEN
-
OPEN_BRACE_TOKEN
public static final TokenType OPEN_BRACE_TOKEN
-
CLOSE_BRACE_TOKEN
public static final TokenType CLOSE_BRACE_TOKEN
-
OPEN_PARENTHESIS_TOKEN
public static final TokenType OPEN_PARENTHESIS_TOKEN
-
CLOSE_PARENTHESIS_TOKEN
public static final TokenType CLOSE_PARENTHESIS_TOKEN
-
NOT_TOKEN
public static final TokenType NOT_TOKEN
-
PLUS_TOKEN
public static final TokenType PLUS_TOKEN
-
MINUS_TOKEN
public static final TokenType MINUS_TOKEN
-
STAR_TOKEN
public static final TokenType STAR_TOKEN
-
SLASH_TOKEN
public static final TokenType SLASH_TOKEN
-
PERCENT_TOKEN
public static final TokenType PERCENT_TOKEN
-
CARET_TOKEN
public static final TokenType CARET_TOKEN
-
GREATER_TOKEN
public static final TokenType GREATER_TOKEN
-
GREATER_EQUALS_TOKEN
public static final TokenType GREATER_EQUALS_TOKEN
-
LESS_TOKEN
public static final TokenType LESS_TOKEN
-
LESS_EQUALS_TOKEN
public static final TokenType LESS_EQUALS_TOKEN
-
EQUALS_EQUALS_TOKEN
public static final TokenType EQUALS_EQUALS_TOKEN
-
EQUALS_TOKEN
public static final TokenType EQUALS_TOKEN
-
NOT_EQUALS_TOKEN
public static final TokenType NOT_EQUALS_TOKEN
-
PLUS_EQUALS_TOKEN
public static final TokenType PLUS_EQUALS_TOKEN
-
MINUS_EQUALS_TOKEN
public static final TokenType MINUS_EQUALS_TOKEN
-
STAR_EQUALS_TOKEN
public static final TokenType STAR_EQUALS_TOKEN
-
SLASH_EQUALS_TOKEN
public static final TokenType SLASH_EQUALS_TOKEN
-
PERCENT_EQUALS_TOKEN
public static final TokenType PERCENT_EQUALS_TOKEN
-
CARET_EQUALS_TOKEN
public static final TokenType CARET_EQUALS_TOKEN
-
LINE_BREAK_TOKEN
public static final TokenType LINE_BREAK_TOKEN
-
EOF_TOKEN
public static final TokenType EOF_TOKEN
-
BAD_TOKEN
public static final TokenType BAD_TOKEN
-
COMMENT_TOKEN
public static final TokenType COMMENT_TOKEN
-
WHITE_SPACE_TOKEN
public static final TokenType WHITE_SPACE_TOKEN
-
-
Method Detail
-
values
public static 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 (TokenType c : 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 TokenType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-