public static enum TypeDescription.Generic.AnnotationReader.NoOp extends java.lang.Enum<TypeDescription.Generic.AnnotationReader.NoOp> implements TypeDescription.Generic.AnnotationReader, java.lang.reflect.AnnotatedElement
TypeDescription.Generic.AnnotationReader.Delegator, TypeDescription.Generic.AnnotationReader.Dispatcher, TypeDescription.Generic.AnnotationReader.ForComponentType, TypeDescription.Generic.AnnotationReader.ForOwnerType, TypeDescription.Generic.AnnotationReader.ForTypeArgument, TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType, TypeDescription.Generic.AnnotationReader.ForWildcardLowerBoundType, TypeDescription.Generic.AnnotationReader.ForWildcardUpperBoundType, TypeDescription.Generic.AnnotationReader.NoOp
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
DISPATCHER
Modifier and Type | Method and Description |
---|---|
AnnotationList |
asList()
Returns the underlying type annotations as a list.
|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass) |
TypeDescription.Generic.AnnotationReader |
ofComponentType()
Returns a reader for type annotations of an array's component type.
|
TypeDescription.Generic.AnnotationReader |
ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.
|
TypeDescription.Generic.AnnotationReader |
ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.
|
TypeDescription.Generic.AnnotationReader |
ofTypeArgument(int index)
Returns a reader for type annotations of a parameterized type's type argument.
|
TypeDescription.Generic.AnnotationReader |
ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.
|
TypeDescription.Generic.AnnotationReader |
ofWildcardLowerBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard lower bound.
|
TypeDescription.Generic.AnnotationReader |
ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.
|
java.lang.reflect.AnnotatedElement |
resolve()
Resolves the underlying
AnnotatedElement . |
static TypeDescription.Generic.AnnotationReader.NoOp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeDescription.Generic.AnnotationReader.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeDescription.Generic.AnnotationReader.NoOp INSTANCE
public static TypeDescription.Generic.AnnotationReader.NoOp[] values()
for (TypeDescription.Generic.AnnotationReader.NoOp c : TypeDescription.Generic.AnnotationReader.NoOp.values()) System.out.println(c);
public static TypeDescription.Generic.AnnotationReader.NoOp valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.reflect.AnnotatedElement resolve()
AnnotatedElement
.resolve
in interface TypeDescription.Generic.AnnotationReader
public AnnotationList asList()
asList
in interface TypeDescription.Generic.AnnotationReader
public TypeDescription.Generic.AnnotationReader ofWildcardUpperBoundType(int index)
ofWildcardUpperBoundType
in interface TypeDescription.Generic.AnnotationReader
index
- The wildcard bound's index.public TypeDescription.Generic.AnnotationReader ofWildcardLowerBoundType(int index)
ofWildcardLowerBoundType
in interface TypeDescription.Generic.AnnotationReader
index
- The wildcard bound's index.public TypeDescription.Generic.AnnotationReader ofTypeVariableBoundType(int index)
ofTypeVariableBoundType
in interface TypeDescription.Generic.AnnotationReader
index
- The bound's index.public TypeDescription.Generic.AnnotationReader ofTypeArgument(int index)
ofTypeArgument
in interface TypeDescription.Generic.AnnotationReader
index
- The bound's index.public TypeDescription.Generic.AnnotationReader ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.
Important: This feature is not currently implemented by the Java reflection API.
ofOwnerType
in interface TypeDescription.Generic.AnnotationReader
public TypeDescription.Generic.AnnotationReader ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.
Important: This feature is not currently implemented by the Java reflection API.
ofOuterClass
in interface TypeDescription.Generic.AnnotationReader
public TypeDescription.Generic.AnnotationReader ofComponentType()
ofComponentType
in interface TypeDescription.Generic.AnnotationReader
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
isAnnotationPresent
in interface java.lang.reflect.AnnotatedElement
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface java.lang.reflect.AnnotatedElement