public enum TokenType extends Enum<TokenType>
| Enum Constant and Description |
|---|
NONE
End of text or error
|
PUNCTUATION
Punctuation
|
UNKNOWN
Character not used in any of the supported natural languages
|
WHITESPACE
Whitespace
|
WORD
Word
|
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
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 NONE
public static final TokenType WORD
public static final TokenType PUNCTUATION
public static final TokenType WHITESPACE
public static final TokenType UNKNOWN
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 nullpublic int getId()
Copyright © 2013 Voikko developers. All Rights Reserved.