public enum TokenizerState extends Enum<TokenizerState>
Enum Constant and Description |
---|
IN_SENTENCE
state for when we are in a sentence.
|
IN_SPECIAL
We are in a string of special characters.
|
IN_WORD
state for when we are in a word.
|
Modifier and Type | Method and Description |
---|---|
static TokenizerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenizerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenizerState IN_SENTENCE
public static final TokenizerState IN_WORD
public static final TokenizerState IN_SPECIAL
public static TokenizerState[] values()
for (TokenizerState c : TokenizerState.values()) System.out.println(c);
public static TokenizerState 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 © 2017. All rights reserved.