Enum Constant and Description |
---|
AMPERSAND |
CLOSE_PAREN |
DOUBLE_MINUS |
DOUBLE_PIPE |
EQUALS |
IDENTIFIER |
LITERAL_STRING |
NEWLINE |
OPEN_PAREN |
PIPE |
SPLIT_CLOSE |
SPLIT_OPEN |
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
char[] |
getTokenChars() |
java.lang.String |
getTokenString() |
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 AMPERSAND
public static final TokenKind DOUBLE_PIPE
public static final TokenKind DOUBLE_MINUS
public static final TokenKind OPEN_PAREN
public static final TokenKind CLOSE_PAREN
public static final TokenKind EQUALS
public static final TokenKind PIPE
public static final TokenKind NEWLINE
public static final TokenKind SPLIT_OPEN
public static final TokenKind SPLIT_CLOSE
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()
public java.lang.String getTokenString()