Package eu.royalsloth.depbuilder.dsl
Enum TokenType
- java.lang.Object
-
- java.lang.Enum<TokenType>
-
- eu.royalsloth.depbuilder.dsl.TokenType
-
- All Implemented Interfaces:
Serializable
,Comparable<TokenType>
public enum TokenType extends Enum<TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLON
COMMA
DIVIDE
DOT
EOF
ERROR
IDENTIFIER
LEFT_ARROW
LEFT_BRACE
LEFT_BRACKET
LEFT_PAREN
MINUS
NUMBER
PIPE
PLUS
RIGHT_ARROW
RIGHT_BRACE
RIGHT_BRACKET
RIGHT_PAREN
SEMICOLON
STAR
STRING
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenType
valueOf(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
-
STRING
public static final TokenType STRING
-
NUMBER
public static final TokenType NUMBER
-
IDENTIFIER
public static final TokenType IDENTIFIER
-
PLUS
public static final TokenType PLUS
-
STAR
public static final TokenType STAR
-
DIVIDE
public static final TokenType DIVIDE
-
MINUS
public static final TokenType MINUS
-
DOT
public static final TokenType DOT
-
COMMA
public static final TokenType COMMA
-
COLON
public static final TokenType COLON
-
SEMICOLON
public static final TokenType SEMICOLON
-
PIPE
public static final TokenType PIPE
-
LEFT_PAREN
public static final TokenType LEFT_PAREN
-
RIGHT_PAREN
public static final TokenType RIGHT_PAREN
-
LEFT_BRACE
public static final TokenType LEFT_BRACE
-
RIGHT_BRACE
public static final TokenType RIGHT_BRACE
-
LEFT_BRACKET
public static final TokenType LEFT_BRACKET
-
RIGHT_BRACKET
public static final TokenType RIGHT_BRACKET
-
RIGHT_ARROW
public static final TokenType RIGHT_ARROW
-
LEFT_ARROW
public static final TokenType LEFT_ARROW
-
UNKNOWN
public static final TokenType UNKNOWN
-
ERROR
public static final TokenType ERROR
-
EOF
public static final TokenType EOF
-
-
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(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
-
-