public enum PartOfSpeech extends java.lang.Enum<PartOfSpeech> implements EnumConverter<PartOfSpeech>
Enum Constant and Description |
---|
ADJECTIVE |
ADPOSITION |
ADVERB |
AUXILIARY |
COORDINATING_CONJUNCTION |
DETERMINER |
INTERJECTION |
NOUN |
NUMERAL |
OTHER |
PARTICLE |
PRONOUN |
PROPER_NOUN |
SUBORDINATING_CONJUNCTION |
VERB |
Modifier and Type | Method and Description |
---|---|
static PartOfSpeech |
from(java.lang.String value) |
java.lang.String |
to(PartOfSpeech v) |
static PartOfSpeech |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PartOfSpeech[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartOfSpeech ADJECTIVE
public static final PartOfSpeech ADPOSITION
public static final PartOfSpeech ADVERB
public static final PartOfSpeech AUXILIARY
public static final PartOfSpeech COORDINATING_CONJUNCTION
public static final PartOfSpeech DETERMINER
public static final PartOfSpeech INTERJECTION
public static final PartOfSpeech NOUN
public static final PartOfSpeech NUMERAL
public static final PartOfSpeech PARTICLE
public static final PartOfSpeech PRONOUN
public static final PartOfSpeech PROPER_NOUN
public static final PartOfSpeech SUBORDINATING_CONJUNCTION
public static final PartOfSpeech VERB
public static final PartOfSpeech OTHER
public static PartOfSpeech[] values()
for (PartOfSpeech c : PartOfSpeech.values()) System.out.println(c);
public static PartOfSpeech 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 PartOfSpeech from(java.lang.String value)
public java.lang.String to(PartOfSpeech v)
to
in interface EnumConverter<PartOfSpeech>