@HashCodeAndEqualsPlugin.Enhance public static class TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType extends TypeDescription.Generic.AnnotationReader.Delegator.Chained
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable
A chained annotation reader for reading a formal type variable's type argument.
|
TypeDescription.Generic.AnnotationReader.Delegator.Chained
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
Modifier and Type | Field and Description |
---|---|
private static java.lang.reflect.Method |
GET_ANNOTATED_BOUNDS
The
java.lang.reflect.AnnotatedTypeVariable#getAnnotatedBounds method. |
private int |
index
The type variable's index.
|
annotationReader, NOT_AVAILABLE
NO_ARGUMENTS
DISPATCHER
Modifier | Constructor and Description |
---|---|
protected |
ForTypeVariableBoundType(TypeDescription.Generic.AnnotationReader annotationReader,
int index)
Creates a chained annotation reader for reading a type variable's bound type.
|
Modifier and Type | Method and 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.
|
of, resolve
asList, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
private static final java.lang.reflect.Method GET_ANNOTATED_BOUNDS
java.lang.reflect.AnnotatedTypeVariable#getAnnotatedBounds
method.private final int index
protected ForTypeVariableBoundType(TypeDescription.Generic.AnnotationReader annotationReader, int index)
annotationReader
- The annotation reader from which to delegate.index
- The type variable's index.protected java.lang.reflect.AnnotatedElement resolve(java.lang.reflect.AnnotatedElement annotatedElement)
TypeDescription.Generic.AnnotationReader.Delegator.Chained
resolve
in class TypeDescription.Generic.AnnotationReader.Delegator.Chained
annotatedElement
- The original annotated element.