Enum ElementType
java.lang.annotation
java.lang.Object
  java.lang.Enum<ElementType>
      java.lang.annotation.ElementType
All Implemented Interfaces:

public enum ElementType
extends Enum<ElementType>
A program element type. The constants of this enumerated type provide a simple classification of the declared elements in a Java program.

These constants are used with the Target meta-annotation type to specify where it is legal to use an annotation type.

Since:
1.5
Author:
Joshua Bloch

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
valueOf(String name)
static ElementType[]
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
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail
TYPE
public static final ElementType TYPE
Class, interface (including annotation type), or enum declaration

FIELD
public static final ElementType FIELD
Field declaration (includes enum constants)

METHOD
public static final ElementType METHOD
Method declaration

PARAMETER
public static final ElementType PARAMETER
Parameter declaration

CONSTRUCTOR
public static final ElementType CONSTRUCTOR
Constructor declaration

LOCAL_VARIABLE
public static final ElementType LOCAL_VARIABLE
Local variable declaration

ANNOTATION_TYPE
public static final ElementType ANNOTATION_TYPE
Annotation type declaration

PACKAGE
public static final ElementType PACKAGE
Package declaration
Method Detail
values
public static ElementType[] values()

valueOf
public static ElementType valueOf(String name)
Java API documentation generated with DocFlex/Doclet v1.5.6
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com