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 Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface 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) booleanisAnnotationPresent(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 Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface 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:
resolvein interfaceTypeDescription.Generic.AnnotationReader- Returns:
- The underlying annotated element.
-
asList
Returns the underlying type annotations as a list.- Specified by:
asListin 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:
ofWildcardUpperBoundTypein 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:
ofWildcardLowerBoundTypein 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:
ofTypeVariableBoundTypein 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:
ofTypeArgumentin 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:
ofOwnerTypein 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:
ofOuterClassin 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:
ofComponentTypein interfaceTypeDescription.Generic.AnnotationReader- Returns:
- An annotation reader for the underlying component type.
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-