public static enum ETokenType.ETokenClass extends java.lang.Enum<ETokenType.ETokenClass>
Enum Constant and Description |
---|
COMMENT
Comments
|
DELIMITER
Delimiters
|
ERROR
Error tokens
|
IDENTIFIER
Identifiers
|
KEYWORD
Keywords
|
LITERAL
Literals
|
OPERATOR
Operators
|
SPECIAL
Special token types
|
SYNTHETIC
Synthetic tokens
|
WHITESPACE
Linebreaks, Whitespace and other non visible characters
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getTokenClassNames()
Convenience method that gets an array of the token class names
|
static ETokenType.ETokenClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ETokenType.ETokenClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ETokenType.ETokenClass LITERAL
public static final ETokenType.ETokenClass KEYWORD
public static final ETokenType.ETokenClass IDENTIFIER
public static final ETokenType.ETokenClass OPERATOR
public static final ETokenType.ETokenClass DELIMITER
public static final ETokenType.ETokenClass COMMENT
public static final ETokenType.ETokenClass SPECIAL
public static final ETokenType.ETokenClass ERROR
public static final ETokenType.ETokenClass WHITESPACE
public static final ETokenType.ETokenClass SYNTHETIC
public static ETokenType.ETokenClass[] values()
for (ETokenType.ETokenClass c : ETokenType.ETokenClass.values()) System.out.println(c);
public static ETokenType.ETokenClass 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 static java.lang.String[] getTokenClassNames()