| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public final enum ElementKind extends Enum
The {@code 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.
Field Summary | |
---|---|
static ElementKind |
ANNOTATION_TYPE
An annotation type. |
static ElementKind |
CLASS
A class not described by a more specific kind (like ). |
static ElementKind |
CONSTRUCTOR
A constructor. |
static ElementKind |
ENUM
An enum type. |
static ElementKind |
ENUM_CONSTANT
An enum constant. |
static ElementKind |
EXCEPTION_PARAMETER
A parameter of an exception handler. |
static ElementKind |
FIELD
A field not described by a more specific kind (like ). |
static ElementKind |
INSTANCE_INIT
An instance initializer. |
static ElementKind |
INTERFACE
An interface not described by a more specific kind (like ). |
static ElementKind |
LOCAL_VARIABLE
A local variable. |
static ElementKind |
METHOD
A method. |
static ElementKind |
OTHER
An implementation-reserved element. |
static ElementKind |
PACKAGE
A package. |
static ElementKind |
PARAMETER
A parameter of a method or constructor. |
static ElementKind |
STATIC_INIT
A static initializer. |
static ElementKind |
TYPE_PARAMETER
A type parameter. |
Method Summary | |
---|---|
boolean |
isClass() Returns if this is a kind of class: either or . |
boolean |
isField() Returns if this is a kind of field: either or . |
boolean |
Returns if this is a kind of interface: either or . |
static ElementKind |
|
static ElementKind[] |
values() |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ElementKind ANNOTATION_TYPE
public static final ElementKind CLASS
public static final ElementKind CONSTRUCTOR
public static final ElementKind ENUM
public static final ElementKind ENUM_CONSTANT
public static final ElementKind EXCEPTION_PARAMETER
public static final ElementKind FIELD
public static final ElementKind INSTANCE_INIT
public static final ElementKind INTERFACE
public static final ElementKind LOCAL_VARIABLE
public static final ElementKind METHOD
public static final ElementKind OTHER
public static final ElementKind PACKAGE
public static final ElementKind PARAMETER
public static final ElementKind STATIC_INIT
public static final ElementKind TYPE_PARAMETER
Method Detail |
---|
public boolean isClass()
public boolean isField()
public boolean isInterface()
public static ElementKind valueOf(String name)
name
public static ElementKind[] values()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |