Enum Class Phrase.Type
- All Implemented Interfaces:
Serializable, Comparable<Phrase.Type>, Constable
- Enclosing class:
Phrase
Functional categories of phrases based on their head word.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGoverned by an adjective (e.g., 'extremely happy').Governed by an adverb (e.g., 'quite quickly').A syntactic structure containing a subject and a predicate.Governed by a noun (e.g., 'the big red cat').Governed by a preposition (e.g., 'under the bridge').Classification unknown.Governed by a verb (e.g., 'carefully runs'). -
Method Summary
Modifier and TypeMethodDescriptionstatic Phrase.TypeReturns the enum constant of this class with the specified name.static Phrase.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOUN_PHRASE
Governed by a noun (e.g., 'the big red cat'). -
VERB_PHRASE
Governed by a verb (e.g., 'carefully runs'). -
ADJECTIVE_PHRASE
Governed by an adjective (e.g., 'extremely happy'). -
ADVERB_PHRASE
Governed by an adverb (e.g., 'quite quickly'). -
PREPOSITIONAL_PHRASE
Governed by a preposition (e.g., 'under the bridge'). -
CLAUSE
A syntactic structure containing a subject and a predicate. -
UNKNOWN
Classification unknown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-