public static enum Token.Type extends java.lang.Enum<Token.Type>
Enum Constant and Description |
---|
ALPHANUMERIC
An alphanumeric string (which may also include the characters $ _ #)
|
DOUBLE_QUOTED_STRING
A string enclosed in " " (embedded quotes are escaped as "")
|
END_MARKER
Special tokens at the start and end of the list.
|
MULTI_LINE_COMMENT
A comment starting at the opening character sequence for a multiline
comment and ending at the closing charcter sequence.
|
PUNCTUATION
Any other symbol, not covered by the above.
|
SINGLE_LINE_COMMENT
A comment starting at the opening character sequence for a single line
comment and ending at the end of the line.
|
SINGLE_QUOTED_STRING
A string enclosed in ' ' (embedded quotes are escaped as '')
|
UNKNOWN
Not used.
|
USER_TOKEN
Any sequence of characters predefined in the Tokenizer#Config as
user tokens.
|
WHITESPACE
Whitespace
|
Modifier and Type | Method and Description |
---|---|
static Token.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Token.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Token.Type WHITESPACE
public static final Token.Type SINGLE_LINE_COMMENT
public static final Token.Type MULTI_LINE_COMMENT
public static final Token.Type SINGLE_QUOTED_STRING
public static final Token.Type DOUBLE_QUOTED_STRING
public static final Token.Type ALPHANUMERIC
public static final Token.Type USER_TOKEN
public static final Token.Type PUNCTUATION
public static final Token.Type END_MARKER
public static final Token.Type UNKNOWN
public static Token.Type[] values()
for (Token.Type c : Token.Type.values()) System.out.println(c);
public static Token.Type 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 null