Package net.bytebuddy.description.type
Class TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedTypeVariable
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedTypeVariable
- All Implemented Interfaces:
TypeDescription.Generic.AnnotationReader
- Enclosing class:
TypeDescription.Generic.AnnotationReader.Delegator
@Enhance
public static class TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedTypeVariable
extends TypeDescription.Generic.AnnotationReader.Delegator
A delegating annotation reader for an annotated type variable.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
TypeDescription.Generic.AnnotationReader.Delegator.Chained, TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedExecutableExceptionType, TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedExecutableParameterType, TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedField, TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedInterface, TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedMethodReturnType, TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedRecordComponent, TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedSuperClass, TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedTypeVariable, TypeDescription.Generic.AnnotationReader.Delegator.Simple
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForLoadedTypeVariable
(TypeVariable<?> typeVariable) Creates a new annotation reader for the given type variable. -
Method Summary
Modifier and TypeMethodDescriptionofTypeVariableBoundType
(int index) Returns a reader for type annotations of a type variable's bound.resolve()
Resolves the underlyingAnnotatedElement
.Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
asList, doPrivileged, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
Field Details
-
typeVariable
The represented type variable.
-
-
Constructor Details
-
ForLoadedTypeVariable
Creates a new annotation reader for the given type variable.- Parameters:
typeVariable
- The represented type variable.
-
-
Method Details
-
resolve
Resolves the underlyingAnnotatedElement
.- Returns:
- The underlying annotated element.
-
ofTypeVariableBoundType
Returns a reader for type annotations of a type variable's bound.- Specified by:
ofTypeVariableBoundType
in interfaceTypeDescription.Generic.AnnotationReader
- Overrides:
ofTypeVariableBoundType
in classTypeDescription.Generic.AnnotationReader.Delegator
- Parameters:
index
- The bound's index.- Returns:
- An annotation reader for the underlying annotated bound.
-