| Enum Constant and Description |
|---|
ASSIGNMENT
Single Equals: =
|
COLON |
COMMA |
DIVIDE |
DOT |
EOF
An unknown token, or the end of the stream.
|
EQUALITY |
GREATER_THAN |
GREATER_THAN_OR_EQUAL |
IDENTIFIER
A Java-style identifier like foo or bar.
|
IN |
INEQUALITY |
LESS_THAN |
LESS_THAN_OR_EQUAL |
LOGICAL_AND |
LOGICAL_OR |
LPAREN
Left-parenthesis: (
|
LSQUARE
Left-square-bracket: [
|
MINUS |
MULTIPLY |
NOT |
NUMBER_LITERAL
A number literal, like 12 or 12.34.
|
PLUS |
QUESTION |
RPAREN
Right-parenthesis: )
|
RSQUARE
Right-square-bracket: ]
|
STRING_LITERAL
A string literal "like this".
|
| Modifier and Type | Method and Description |
|---|---|
BinaryOperator |
binaryOperator() |
TokenType |
closingType() |
boolean |
hasValue() |
TokenType |
separatorType() |
TernaryOperator |
ternaryOperator() |
UnaryOperator |
unaryOperator() |
static TokenType |
valueOf(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.
|
public static final TokenType EOF
public static final TokenType STRING_LITERAL
public static final TokenType NUMBER_LITERAL
public static final TokenType IDENTIFIER
public static final TokenType RPAREN
public static final TokenType LPAREN
public static final TokenType RSQUARE
public static final TokenType LSQUARE
public static final TokenType ASSIGNMENT
public static final TokenType COMMA
public static final TokenType DOT
public static final TokenType NOT
public static final TokenType LOGICAL_AND
public static final TokenType LOGICAL_OR
public static final TokenType EQUALITY
public static final TokenType INEQUALITY
public static final TokenType LESS_THAN
public static final TokenType GREATER_THAN
public static final TokenType LESS_THAN_OR_EQUAL
public static final TokenType GREATER_THAN_OR_EQUAL
public static final TokenType PLUS
public static final TokenType MINUS
public static final TokenType MULTIPLY
public static final TokenType DIVIDE
public static final TokenType IN
public static final TokenType COLON
public static final TokenType QUESTION
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean hasValue()
public TernaryOperator ternaryOperator()
public BinaryOperator binaryOperator()
public UnaryOperator unaryOperator()
public TokenType closingType()
public TokenType separatorType()