Package net.bytebuddy.description.type
Class TypeDescription.Generic.AnnotationReader.Delegator.Chained
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator.Chained
- All Implemented Interfaces:
TypeDescription.Generic.AnnotationReader
- Direct Known Subclasses:
TypeDescription.Generic.AnnotationReader.ForComponentType
,TypeDescription.Generic.AnnotationReader.ForOwnerType
,TypeDescription.Generic.AnnotationReader.ForTypeArgument
,TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType
,TypeDescription.Generic.AnnotationReader.ForWildcardLowerBoundType
,TypeDescription.Generic.AnnotationReader.ForWildcardUpperBoundType
- Enclosing class:
TypeDescription.Generic.AnnotationReader.Delegator
@Enhance
protected abstract static class TypeDescription.Generic.AnnotationReader.Delegator.Chained
extends TypeDescription.Generic.AnnotationReader.Delegator
A chained delegator that bases its result on an underlying annotation reader.
-
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.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 TypeFieldDescriptionprotected final TypeDescription.Generic.AnnotationReader
The underlying annotation reader. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Chained
(TypeDescription.Generic.AnnotationReader annotationReader) Creates a new chained annotation reader. -
Method Summary
Modifier and TypeMethodDescriptionresolve()
Resolves the underlyingAnnotatedElement
.protected abstract AnnotatedElement
resolve
(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
asList, doPrivileged, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
Field Details
-
annotationReader
The underlying annotation reader.
-
-
Constructor Details
-
Chained
Creates a new chained annotation reader.- Parameters:
annotationReader
- The underlying annotation reader.
-
-
Method Details
-
resolve
Resolves the underlyingAnnotatedElement
.- Returns:
- The underlying annotated element.
-
resolve
Resolves the type annotations from a given annotated element into the annotated element that this instance represents.- Parameters:
annotatedElement
- The original annotated element.- Returns:
- The resolved annotated element.
-