kind
of an element.
Note that it is possible additional element kinds will be added to accommodate new, currently unknown, language structures added to future versions of the Java programming language.
Element
Modifier and Type | Field and Description |
---|---|
public static final ElementKind | ANNOTATION_TYPE
An annotation interface. |
public static final ElementKind | BINDING_VARIABLE
A binding variable in a pattern. |
public static final ElementKind | CLASS
A class not described by a more specific kind (like |
public static final ElementKind | CONSTRUCTOR
A constructor. |
public static final ElementKind | ENUM
An enum class. |
public static final ElementKind | ENUM_CONSTANT
An enum constant. |
public static final ElementKind | EXCEPTION_PARAMETER
A parameter of an exception handler. |
public static final ElementKind | FIELD
A field not described by a more specific kind (like
|
public static final ElementKind | INSTANCE_INIT
An instance initializer. |
public static final ElementKind | INTERFACE
An interface not described by a more specific kind (like
|
public static final ElementKind | LOCAL_VARIABLE
A local variable. |
public static final ElementKind | METHOD
A method. |
public static final ElementKind | MODULE
A module. |
public static final ElementKind | OTHER
An implementation-reserved element. |
public static final ElementKind | PACKAGE
A package. |
public static final ElementKind | PARAMETER
A parameter of a method or constructor. |
public static final ElementKind | RECORD
A record class. |
public static final ElementKind | RECORD_COMPONENT
A record component of a |
public static final ElementKind | RESOURCE_VARIABLE
A resource variable. |
public static final ElementKind | STATIC_INIT
A static initializer. |
public static final ElementKind | TYPE_PARAMETER
A type parameter. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if this is a kind of classReturns |
public boolean | isDeclaredType()
Returns |
public boolean | Returns: true if this is a kind of executableReturns |
public boolean | Returns: true if this is a kind of fieldReturns |
public boolean | Returns: true if this is a kind of initializerReturns |
public boolean | Returns: true if this is a kind of interfaceReturns |
public boolean | Returns: true if this is a kind of variableReturns |
public static ElementKind | |
public static ElementKind[] |
ANNOTATION_TYPE | back to summary |
---|---|
public static final ElementKind ANNOTATION_TYPE An annotation interface. (Formerly known as an annotation type.) |
BINDING_VARIABLE | back to summary |
---|---|
public static final ElementKind BINDING_VARIABLE A binding variable in a pattern.
|
CLASS | back to summary |
---|---|
public static final ElementKind CLASS A class not described by a more specific kind (like |
CONSTRUCTOR | back to summary |
---|---|
public static final ElementKind CONSTRUCTOR A constructor. |
ENUM | back to summary |
---|---|
public static final ElementKind ENUM An enum class. |
ENUM_CONSTANT | back to summary |
---|---|
public static final ElementKind ENUM_CONSTANT An enum constant. |
EXCEPTION_PARAMETER | back to summary |
---|---|
public static final ElementKind EXCEPTION_PARAMETER A parameter of an exception handler. |
FIELD | back to summary |
---|---|
public static final ElementKind FIELD A field not described by a more specific kind (like
|
INSTANCE_INIT | back to summary |
---|---|
public static final ElementKind INSTANCE_INIT An instance initializer. |
INTERFACE | back to summary |
---|---|
public static final ElementKind INTERFACE An interface not described by a more specific kind (like
|
LOCAL_VARIABLE | back to summary |
---|---|
public static final ElementKind LOCAL_VARIABLE A local variable. |
METHOD | back to summary |
---|---|
public static final ElementKind METHOD A method. |
MODULE | back to summary |
---|---|
public static final ElementKind MODULE A module.
|
OTHER | back to summary |
---|---|
public static final ElementKind OTHER An implementation-reserved element. This is not the element you are looking for. |
PACKAGE | back to summary |
---|---|
public static final ElementKind PACKAGE A package. |
PARAMETER | back to summary |
---|---|
public static final ElementKind PARAMETER A parameter of a method or constructor. |
RECORD | back to summary |
---|---|
public static final ElementKind RECORD A record class.
|
RECORD_COMPONENT | back to summary |
---|---|
public static final ElementKind RECORD_COMPONENT A record component of a
|
RESOURCE_VARIABLE | back to summary |
---|---|
public static final ElementKind RESOURCE_VARIABLE A resource variable.
|
STATIC_INIT | back to summary |
---|---|
public static final ElementKind STATIC_INIT A static initializer. |
TYPE_PARAMETER | back to summary |
---|---|
public static final ElementKind TYPE_PARAMETER A type parameter. |
ElementKind | back to summary |
---|---|
private ElementKind() |
isClass | back to summary |
---|---|
public boolean isClass() Returns
|
isDeclaredType | back to summary |
---|---|
public boolean isDeclaredType() Returns |
isExecutable | back to summary |
---|---|
public boolean isExecutable() Returns
|
isField | back to summary |
---|---|
public boolean isField() Returns
|
isInitializer | back to summary |
---|---|
public boolean isInitializer() Returns
|
isInterface | back to summary |
---|---|
public boolean isInterface() Returns
|
isVariable | back to summary |
---|---|
public boolean isVariable() Returns
|
valueOf | back to summary |
---|---|
public static ElementKind valueOf(String name) |
values | back to summary |
---|---|
public static ElementKind[] values() |