Save This Page
Home » openjdk-7 » java » lang » annotation » [javadoc | source]
java.lang.annotation
public enum class: ElementType [javadoc | source]
java.lang.Enum
   java.lang.annotation.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.

Field Summary
public  ElementType TYPE    Class, interface (including annotation type), or enum declaration 
public  ElementType FIELD    Field declaration (includes enum constants) 
public  ElementType METHOD    Method declaration 
public  ElementType PARAMETER    Parameter declaration 
public  ElementType CONSTRUCTOR    Constructor declaration 
public  ElementType LOCAL_VARIABLE    Local variable declaration 
public  ElementType ANNOTATION_TYPE    Annotation type declaration 
public  ElementType PACKAGE    Package declaration