public static enum Sentence.SentenceType extends java.lang.Enum<Sentence.SentenceType>
Enum Constant and Description |
---|
Imperative |
Interrogative |
Statement |
Modifier and Type | Method and Description |
---|---|
static Sentence.SentenceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Sentence.SentenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sentence.SentenceType Interrogative
public static final Sentence.SentenceType Imperative
public static final Sentence.SentenceType Statement
public static Sentence.SentenceType[] values()
for (Sentence.SentenceType c : Sentence.SentenceType.values()) System.out.println(c);
public static Sentence.SentenceType 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 null