Package net.bytebuddy.description.type
Class TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedTypeVariableType
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
-
- net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedTypeVariableType
-
- All Implemented Interfaces:
TypeDescription.Generic.AnnotationReader
@Enhance protected static class TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedTypeVariableType 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.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 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
AnnotatedTypeVariableType(java.lang.reflect.TypeVariable<?> typeVariable)
Creates a new annotation reader for the given type variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription.Generic.AnnotationReader
ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.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, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
-
-
-
Method Detail
-
resolve
public java.lang.reflect.AnnotatedElement resolve()
Resolves the underlyingAnnotatedElement
.- Returns:
- The underlying annotated element.
-
ofTypeVariableBoundType
public TypeDescription.Generic.AnnotationReader ofTypeVariableBoundType(int index)
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.
-
-