java.lang.Object | ||
↳ | java.lang.Enum<java.lang.annotation.ElementType> | |
↳ | java.lang.annotation.ElementType |
Defines an enumeration for Java program elements. It is used in conjunction
with the Target
meta-annotation to restrict the use of an annotation
to certain program elements.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ElementType | ANNOTATION_TYPE | Annotation type declaration. | |||||||||
ElementType | CONSTRUCTOR | Constructor declaration. | |||||||||
ElementType | FIELD | Field declaration. | |||||||||
ElementType | LOCAL_VARIABLE | Local variable declaration. | |||||||||
ElementType | METHOD | Method declaration. | |||||||||
ElementType | PACKAGE | Package declaration. | |||||||||
ElementType | PARAMETER | Parameter declaration. | |||||||||
ElementType | TYPE | Class, interface or enum declaration. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|