Package net.bytebuddy.description.type
Class TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
-
- net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator.Chained
-
- net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType
-
- All Implemented Interfaces:
TypeDescription.Generic.AnnotationReader
- Enclosing interface:
- TypeDescription.Generic.AnnotationReader
@Enhance public static class TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType extends TypeDescription.Generic.AnnotationReader.Delegator.Chained
A chained annotation reader for reading a type variable's type argument.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.AnnotatedTypeVariable
A proxy to interact withjava.lang.reflect.AnnotatedTypeVariable
.protected static class
TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable
A chained annotation reader for reading a formal type variable's type argument.-
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 Modifier and Type Field Description private static TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.AnnotatedTypeVariable
ANNOTATED_TYPE_VARIABLE
A dispatcher to interact withjava.lang.reflect.AnnotatedTypeVariable
.private int
index
The type variable's index.-
Fields inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator.Chained
annotationReader
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForTypeVariableBoundType(TypeDescription.Generic.AnnotationReader annotationReader, int index)
Creates a chained annotation reader for reading a type variable's bound type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.reflect.AnnotatedElement
resolve(java.lang.reflect.AnnotatedElement annotatedElement)
Resolves the type annotations from a given annotated element into the annotated element that this instance represents.-
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator.Chained
resolve
-
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
asList, doPrivileged, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
-
-
-
Field Detail
-
ANNOTATED_TYPE_VARIABLE
private static final TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.AnnotatedTypeVariable ANNOTATED_TYPE_VARIABLE
A dispatcher to interact withjava.lang.reflect.AnnotatedTypeVariable
.
-
index
private final int index
The type variable's index.
-
-
Constructor Detail
-
ForTypeVariableBoundType
protected ForTypeVariableBoundType(TypeDescription.Generic.AnnotationReader annotationReader, int index)
Creates a chained annotation reader for reading a type variable's bound type.- Parameters:
annotationReader
- The annotation reader from which to delegate.index
- The type variable's index.
-
-
Method Detail
-
resolve
protected java.lang.reflect.AnnotatedElement resolve(java.lang.reflect.AnnotatedElement annotatedElement)
Description copied from class:TypeDescription.Generic.AnnotationReader.Delegator.Chained
Resolves the type annotations from a given annotated element into the annotated element that this instance represents.- Specified by:
resolve
in classTypeDescription.Generic.AnnotationReader.Delegator.Chained
- Parameters:
annotatedElement
- The original annotated element.- Returns:
- The resolved annotated element.
-
-