public enum Tense extends Enum<Tense>
An enumeration representing the different types of temporal sense that can be
applied to a verb. The tense is recorded in the Feature.TENSE feature
and applies to verbs and their associated phrases.
| Enum Constant and Description |
|---|
FUTURE
The action described by the verb will happen in the future.
|
PAST
The action described by the verb happened in the past.
|
PRESENT
The action described by the verb is happening in the present time.
|
| Modifier and Type | Method and Description |
|---|---|
static Tense |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Tense[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tense FUTURE
public static final Tense PAST
public static final Tense PRESENT
public static Tense[] values()
for (Tense c : Tense.values()) System.out.println(c);
public static Tense 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 © 2020. All Rights Reserved.