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>
,java.lang.constant.Constable
,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 class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader
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 Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasList()
Returns the underlying type annotations as a list.<T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) Returns a reader for type annotations of an array's component type.Returns a reader for type annotations of an inner class type's outer type.Returns a reader for type annotations of a parameterized type's owner type.ofTypeArgument
(int index) Returns a reader for type annotations of a parameterized type's type argument.ofTypeVariableBoundType
(int index) Returns a reader for type annotations of a type variable's bound.ofWildcardLowerBoundType
(int index) Returns a reader for type annotations of an represented element's wildcard lower bound.ofWildcardUpperBoundType
(int index) Returns a reader for type annotations of an represented element's wildcard upper bound.resolve()
Resolves the underlyingAnnotatedElement
.Returns the enum constant of this type with the specified name.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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
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
-
resolve
Resolves the underlyingAnnotatedElement
.- Specified by:
resolve
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- The underlying annotated element.
-
asList
Returns the underlying type annotations as a list.- Specified by:
asList
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- The underlying type annotations as a list.
-
ofWildcardUpperBoundType
Returns a reader for type annotations of an represented element's wildcard upper bound.- Specified by:
ofWildcardUpperBoundType
in interfaceTypeDescription.Generic.AnnotationReader
- Parameters:
index
- The wildcard bound's index.- Returns:
- An annotation reader for the underlying annotated upper bound.
-
ofWildcardLowerBoundType
Returns a reader for type annotations of an represented element's wildcard lower bound.- Specified by:
ofWildcardLowerBoundType
in interfaceTypeDescription.Generic.AnnotationReader
- Parameters:
index
- The wildcard bound's index.- Returns:
- An annotation reader for the underlying annotated lower bound.
-
ofTypeVariableBoundType
Returns a reader for type annotations of a type variable's bound.- Specified by:
ofTypeVariableBoundType
in interfaceTypeDescription.Generic.AnnotationReader
- Parameters:
index
- The bound's index.- Returns:
- An annotation reader for the underlying annotated bound.
-
ofTypeArgument
Returns a reader for type annotations of a parameterized type's type argument.- Specified by:
ofTypeArgument
in interfaceTypeDescription.Generic.AnnotationReader
- Parameters:
index
- The bound's index.- Returns:
- An annotation reader for the underlying annotated bound..
-
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:
ofOwnerType
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- An annotation reader for the underlying owner type.
-
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:
ofOuterClass
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- An annotation reader for the underlying owner type.
-
ofComponentType
Returns a reader for type annotations of an array's component type.- Specified by:
ofComponentType
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- An annotation reader for the underlying component type.
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
-