Package net.bytebuddy.description.type
Enum TypeDescription.Generic.AnnotationReader.NoOp
- java.lang.Object
-
- java.lang.Enum<TypeDescription.Generic.AnnotationReader.NoOp>
-
- net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.NoOp
-
- All Implemented Interfaces:
Serializable,Comparable<TypeDescription.Generic.AnnotationReader.NoOp>,AnnotatedElement,TypeDescription.Generic.AnnotationReader
- Enclosing interface:
- TypeDescription.Generic.AnnotationReader
public static enum TypeDescription.Generic.AnnotationReader.NoOp extends Enum<TypeDescription.Generic.AnnotationReader.NoOp> implements TypeDescription.Generic.AnnotationReader, AnnotatedElement
A non-operational annotation reader.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader
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 Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance.
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader
DISPATCHER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationListasList()Returns the underlying type annotations as a list.<T extends Annotation>
TgetAnnotation(Class<T> annotationClass)Annotation[]getAnnotations()Annotation[]getDeclaredAnnotations()booleanisAnnotationPresent(Class<? extends Annotation> annotationClass)TypeDescription.Generic.AnnotationReaderofComponentType()Returns a reader for type annotations of an array's component type.TypeDescription.Generic.AnnotationReaderofOuterClass()Returns a reader for type annotations of an inner class type's outer type.TypeDescription.Generic.AnnotationReaderofOwnerType()Returns a reader for type annotations of a parameterized type's owner type.TypeDescription.Generic.AnnotationReaderofTypeArgument(int index)Returns a reader for type annotations of a parameterized type's type argument.TypeDescription.Generic.AnnotationReaderofTypeVariableBoundType(int index)Returns a reader for type annotations of a type variable's bound.TypeDescription.Generic.AnnotationReaderofWildcardLowerBoundType(int index)Returns a reader for type annotations of an represented element's wildcard lower bound.TypeDescription.Generic.AnnotationReaderofWildcardUpperBoundType(int index)Returns a reader for type annotations of an represented element's wildcard upper bound.AnnotatedElementresolve()Resolves the underlyingAnnotatedElement.static TypeDescription.Generic.AnnotationReader.NoOpvalueOf(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.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeDescription.Generic.AnnotationReader.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static TypeDescription.Generic.AnnotationReader.NoOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeDescription.Generic.AnnotationReader.NoOp c : TypeDescription.Generic.AnnotationReader.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeDescription.Generic.AnnotationReader.NoOp valueOf(String name)
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
-
resolve
public AnnotatedElement resolve()
Resolves the underlyingAnnotatedElement.- Specified by:
resolvein interfaceTypeDescription.Generic.AnnotationReader- Returns:
- The underlying annotated element.
-
asList
public AnnotationList asList()
Returns the underlying type annotations as a list.- Specified by:
asListin interfaceTypeDescription.Generic.AnnotationReader- Returns:
- The underlying type annotations as a list.
-
ofWildcardUpperBoundType
public TypeDescription.Generic.AnnotationReader ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.- Specified by:
ofWildcardUpperBoundTypein interfaceTypeDescription.Generic.AnnotationReader- Parameters:
index- The wildcard bound's index.- Returns:
- An annotation reader for the underlying annotated upper bound.
-
ofWildcardLowerBoundType
public TypeDescription.Generic.AnnotationReader ofWildcardLowerBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard lower bound.- Specified by:
ofWildcardLowerBoundTypein interfaceTypeDescription.Generic.AnnotationReader- Parameters:
index- The wildcard bound's index.- Returns:
- An annotation reader for the underlying annotated lower bound.
-
ofTypeVariableBoundType
public TypeDescription.Generic.AnnotationReader ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.- Specified by:
ofTypeVariableBoundTypein interfaceTypeDescription.Generic.AnnotationReader- Parameters:
index- The bound's index.- Returns:
- An annotation reader for the underlying annotated bound.
-
ofTypeArgument
public TypeDescription.Generic.AnnotationReader ofTypeArgument(int index)
Returns a reader for type annotations of a parameterized type's type argument.- Specified by:
ofTypeArgumentin interfaceTypeDescription.Generic.AnnotationReader- Parameters:
index- The bound's index.- Returns:
- An annotation reader for the underlying annotated bound..
-
ofOwnerType
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.
- Specified by:
ofOwnerTypein interfaceTypeDescription.Generic.AnnotationReader- Returns:
- An annotation reader for the underlying owner type.
-
ofOuterClass
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.
- Specified by:
ofOuterClassin interfaceTypeDescription.Generic.AnnotationReader- Returns:
- An annotation reader for the underlying owner type.
-
ofComponentType
public TypeDescription.Generic.AnnotationReader ofComponentType()
Returns a reader for type annotations of an array's component type.- Specified by:
ofComponentTypein interfaceTypeDescription.Generic.AnnotationReader- Returns:
- An annotation reader for the underlying component type.
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
-