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
Fields Modifier and Type Field Description protected TypeDescription.Generic.AnnotationReader
annotationReader
The underlying annotation reader.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Chained(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a new chained annotation reader.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.AnnotatedElement
resolve()
Resolves the underlyingAnnotatedElement
.protected abstract 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.-
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
asList, doPrivileged, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
-
-
-
Field Detail
-
annotationReader
protected final TypeDescription.Generic.AnnotationReader annotationReader
The underlying annotation reader.
-
-
Constructor Detail
-
Chained
protected Chained(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a new chained annotation reader.- Parameters:
annotationReader
- The underlying annotation reader.
-
-
Method Detail
-
resolve
public java.lang.reflect.AnnotatedElement resolve()
Resolves the underlyingAnnotatedElement
.- Returns:
- The underlying annotated element.
-
resolve
protected abstract 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.- Parameters:
annotatedElement
- The original annotated element.- Returns:
- The resolved annotated element.
-
-