public enum TokenKind extends Enum<TokenKind>
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() |
String |
toString() |
static TokenKind |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean hasPayload()
public int getLength()
public char[] getTokenChars()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.