Enum Constant and Description |
---|
AND |
COLON |
DOT |
DOUBLE_MINUS |
EQUALS |
GT |
IDENTIFIER |
LITERAL_STRING |
NEWLINE |
PIPE |
REFERENCE |
SEMICOLON |
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
char[] |
getTokenChars() |
boolean |
hasPayload() |
java.lang.String |
toString() |
static TokenKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TokenKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenKind IDENTIFIER
public static final TokenKind DOUBLE_MINUS
public static final TokenKind EQUALS
public static final TokenKind AND
public static final TokenKind PIPE
public static final TokenKind NEWLINE
public static final TokenKind COLON
public static final TokenKind GT
public static final TokenKind SEMICOLON
public static final TokenKind REFERENCE
public static final TokenKind DOT
public static final TokenKind LITERAL_STRING
public static TokenKind[] values()
for (TokenKind c : TokenKind.values()) System.out.println(c);
public static TokenKind 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 java.lang.String toString()
toString
in class java.lang.Enum<TokenKind>
public boolean hasPayload()
public int getLength()
public char[] getTokenChars()