Package spoon.reflect.declaration
Enum CtAnnotatedElementType
- All Implemented Interfaces:
Serializable
,Comparable<CtAnnotatedElementType>
This enum specifies the element type which is annotated by the annotation
-
Enum Constant Summary
Enum ConstantDescriptionAnnotation type declarationConstructor declarationField declaration (includes enum constants)Local variable declarationMethod declarationPackage declarationParameter declarationClass, interface (including annotation type), or enum declarationType parameter declarationUse of a type -
Method Summary
Modifier and TypeMethodDescriptionstatic CtAnnotatedElementType
Returns the enum constant of this type with the specified name.static CtAnnotatedElementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE
Class, interface (including annotation type), or enum declaration -
FIELD
Field declaration (includes enum constants) -
METHOD
Method declaration -
PARAMETER
Parameter declaration -
CONSTRUCTOR
Constructor declaration -
LOCAL_VARIABLE
Local variable declaration -
ANNOTATION_TYPE
Annotation type declaration -
PACKAGE
Package declaration -
TYPE_PARAMETER
Type parameter declaration -
TYPE_USE
Use of a type
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-