public static enum TypeDescription.Generic.AnnotationReader.NoOp extends Enum<TypeDescription.Generic.AnnotationReader.NoOp> implements TypeDescription.Generic.AnnotationReader, AnnotatedElement
TypeDescription.Generic.AnnotationReader.Delegator, 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.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
asList()
Returns the underlying type annotations as a list.
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
boolean |
isAnnotationPresent(Class<? extends 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.
|
AnnotatedElement |
resolve()
Resolves the underlying
AnnotatedElement . |
static TypeDescription.Generic.AnnotationReader.NoOp |
valueOf(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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic 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(Class<? extends Annotation> annotationClass)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
Copyright © 2014–2023. All rights reserved.