public enum PartOfSpeech extends Enum<PartOfSpeech>
Enum Constant and Description |
---|
adjective
Constant indicating an adjective.
|
adverb
Constant indicating an adverb.
|
noun
Constant indicating that it is some sort of noun, but proper analysis hasn't been run on it.
|
noun_common
Constant indicating a common noun.
|
noun_other
Constant indicating a noun classified as other than a common noun or proper noun.
|
noun_pronoun
Constant indicating a pronoun.
|
noun_proper
Constant indicating a proper noun.
|
other
There is classification data, but it can't be applied to the value of this enumerated type.
|
unknown
Things having no classification data.
|
verb
Constant indicating a verb.
|
Modifier and Type | Method and Description |
---|---|
String |
getExpression()
Gets this object's expression.
|
String |
toString()
Gets this object's array expression.
|
static PartOfSpeech |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PartOfSpeech |
valueOfExpression(String expression)
Seeks an object from the expression.
|
static PartOfSpeech[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Collection<PartOfSpeech> |
valuesCollection()
Returns a collection of values.
|
public static final PartOfSpeech noun_common
public static final PartOfSpeech noun_pronoun
public static final PartOfSpeech noun_proper
public static final PartOfSpeech noun_other
public static final PartOfSpeech noun
public static final PartOfSpeech verb
public static final PartOfSpeech adjective
public static final PartOfSpeech adverb
public static final PartOfSpeech other
public static final PartOfSpeech unknown
public static PartOfSpeech[] values()
for (PartOfSpeech c : PartOfSpeech.values()) System.out.println(c);
public static PartOfSpeech 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 String toString()
toString
in class Enum<PartOfSpeech>
public String getExpression()
public static PartOfSpeech valueOfExpression(String expression)
expression
- expressionpublic static Collection<PartOfSpeech> valuesCollection()