- All Implemented Interfaces:
Serializable
,Comparable<ElementKind>
,Constable
Kind of element.
Order is significant, as it is used downstream in comparator of injection point ids.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAnnotation element type kind.Interface element type kind.Constructor element type kind.Enum element type kind.Enumeration constant.Field element type kind.Instance initialization block.Interface element type kind.Local variable.Method element type kind.Not the stuff you are looking for.Package element type kind.Parameter element type kind.Record element type kind (since Java 16).Component of a record.Static initialization block. -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementKind
Returns the enum constant of this class with the specified name.static ElementKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSTRUCTOR
Constructor element type kind. See javax.lang.model.element.ElementKind#CONSTRUCTOR -
FIELD
Field element type kind. See javax.lang.model.element.ElementKind#FIELD -
METHOD
Method element type kind. See javax.lang.model.element.ElementKind#METHOD -
PARAMETER
Parameter element type kind. See javax.lang.model.element.ElementKind#PARAMETER -
INTERFACE
Interface element type kind. See javax.lang.model.element.ElementKind#INTERFACE -
CLASS
Interface element type kind. See javax.lang.model.element.ElementKind#CLASS -
ENUM
Enum element type kind. See javax.lang.model.element.ElementKind#ENUM -
ANNOTATION_TYPE
Annotation element type kind. See javax.lang.model.element.ElementKind#ANNOTATION_TYPE -
PACKAGE
Package element type kind. See javax.lang.model.element.ElementKind#PACKAGE -
RECORD
Record element type kind (since Java 16). See javax.lang.model.element.ElementKind#RECORD -
RECORD_COMPONENT
Component of a record. -
STATIC_INIT
Static initialization block. -
INSTANCE_INIT
Instance initialization block. -
ENUM_CONSTANT
Enumeration constant. -
LOCAL_VARIABLE
Local variable. -
OTHER
Not the stuff you are looking for.
-
-
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
-