public enum TokenType extends Enum<TokenType>
| Enum Constant and Description |
|---|
SPECIAL
The token represents special tokens, such as URLs, e-mails and phone numbers.
|
SYMBOL
The token represents one or more symbols.
|
UNKNOWN
The type of token is unknown.
|
WHITESPACE
The token represents white space.
|
WORD
The token represents a word.
|
| Modifier and Type | Method and Description |
|---|---|
static TokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenType UNKNOWN
Tokenizer where the consumer should handle the
resolving the type of token.public static final TokenType WORD
public static final TokenType SYMBOL
public static final TokenType WHITESPACE
public static final TokenType SPECIAL
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType 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 nullCopyright © 2018. All rights reserved.