ElementType - JRE Emulation | JRE Emulation
public final enum

ElementType

extends Enum<ElementType>
java.lang.Object
   ↳ java.lang.Enum<java.lang.annotation.ElementType>
     ↳ java.lang.annotation.ElementType

Class Overview

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.

Summary

Enum Values
ElementType  ANNOTATION_TYPE  Annotation type declaration  
ElementType  CONSTRUCTOR  Constructor declaration  
ElementType  FIELD  Field declaration (includes enum constants)  
ElementType  LOCAL_VARIABLE  Local variable declaration  
ElementType  METHOD  Method declaration  
ElementType  PACKAGE  Package declaration  
ElementType  PARAMETER  Formal parameter declaration  
ElementType  TYPE  Class, interface (including annotation type), or enum declaration  
Public Methods
static ElementType valueOf(String name)
final static ElementType[] values()
Inherited Methods
[Expand]
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ElementType ANNOTATION_TYPE

Annotation type declaration

public static final ElementType CONSTRUCTOR

Constructor declaration

public static final ElementType FIELD

Field declaration (includes enum constants)

public static final ElementType LOCAL_VARIABLE

Local variable declaration

public static final ElementType METHOD

Method declaration

public static final ElementType PACKAGE

Package declaration

public static final ElementType PARAMETER

Formal parameter declaration

public static final ElementType TYPE

Class, interface (including annotation type), or enum declaration

Public Methods

public static ElementType valueOf (String name)

public static final ElementType[] values ()