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 classes/interfaces inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
TypeDescription.Generic.AnnotationReader.Delegator.Chained, TypeDescription.Generic.AnnotationReader.Delegator.ForRecordComponent
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader
TypeDescription.Generic.AnnotationReader.Delegator, TypeDescription.Generic.AnnotationReader.Dispatcher, 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 java.lang.reflect.Method
GET_ANNOTATED_BOUNDS
Thejava.lang.reflect.TypeVariable#getAnnotatedBounds
method.private int
index
The type variable's index.private java.lang.reflect.TypeVariable<?>
typeVariable
The represented type variable.-
Fields inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
NO_ARGUMENTS
-
Fields inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader
DISPATCHER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OfFormalTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable, int index)
Creates a chained annotation reader for reading a formal type variable's bound type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.AnnotatedElement
resolve()
Resolves the underlyingAnnotatedElement
.-
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
asList, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
-
-
-
Field Detail
-
GET_ANNOTATED_BOUNDS
private static final java.lang.reflect.Method GET_ANNOTATED_BOUNDS
Thejava.lang.reflect.TypeVariable#getAnnotatedBounds
method.
-
typeVariable
private final java.lang.reflect.TypeVariable<?> typeVariable
The represented type variable.
-
index
private final int index
The type variable's index.
-
-
Constructor Detail
-
OfFormalTypeVariable
protected OfFormalTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable, int index)
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.
-
-