Package net.bytebuddy.description.type
Class TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable
- All Implemented Interfaces:
TypeDescription.Generic.AnnotationReader
- Enclosing class:
TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType
@Enhance
protected static class TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable
extends TypeDescription.Generic.AnnotationReader.Delegator
A chained annotation reader for reading a formal type variable's type argument.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface
A proxy to interact withjava.lang.reflect.TypeVariable
.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
FieldsModifier and TypeFieldDescriptionprivate final int
The type variable's index.private static final TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable.FormalTypeVariable
A dispatcher to interact withjava.lang.reflect.TypeVariable
.private final TypeVariable
<?> The represented type variable. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OfFormalTypeVariable
(TypeVariable<?> typeVariable, int index) Creates a chained annotation reader for reading a formal type variable's bound type. -
Method Summary
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
asList, doPrivileged, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
Field Details
-
TYPE_VARIABLE
private static final TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable.FormalTypeVariable TYPE_VARIABLEA dispatcher to interact withjava.lang.reflect.TypeVariable
. -
typeVariable
The represented type variable. -
index
private final int indexThe type variable's index.
-
-
Constructor Details
-
OfFormalTypeVariable
Creates a chained annotation reader for reading a formal type variable's bound type.- Parameters:
typeVariable
- The represented type variable.index
- The type variable's index.
-
-
Method Details
-
resolve
Resolves the underlyingAnnotatedElement
.- Returns:
- The underlying annotated element.
-