java.lang.annotation.ElementTypeThese constants are used with the Target meta-annotation type to specify where it is legal to use an annotation type.
| Enum Constant Summary | |
| ANNOTATION_TYPE Annotation type declaration |
|
| CONSTRUCTOR Constructor declaration |
|
| FIELD Field declaration (includes enum constants) |
|
| LOCAL_VARIABLE Local variable declaration |
|
| METHOD Method declaration |
|
| PACKAGE Package declaration |
|
| PARAMETER Parameter declaration |
|
| TYPE Class, interface (including annotation type), or enum declaration |
| Method Summary | ||
static ElementType |
valueOf(String name) | |
static ElementType[] |
values() | |
| Methods inherited from class java.lang.Enum |
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |