Package net.bytebuddy.description.type
Class TypeDescription.Generic.AnnotationReader.ForComponentType
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator.Chained
net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.ForComponentType
- All Implemented Interfaces:
TypeDescription.Generic.AnnotationReader
- Enclosing interface:
- TypeDescription.Generic.AnnotationReader
public static class TypeDescription.Generic.AnnotationReader.ForComponentType
extends TypeDescription.Generic.AnnotationReader.Delegator.Chained
A chained annotation reader for reading a component type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface
A proxy to interact withjava.lang.reflect.AnnotatedArrayType
.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 TypeFieldDescriptionprivate static final TypeDescription.Generic.AnnotationReader.ForComponentType.AnnotatedParameterizedType
A dispatcher for interacting withjava.lang.reflect.AnnotatedArrayType
.Fields inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator.Chained
annotationReader
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForComponentType
(TypeDescription.Generic.AnnotationReader annotationReader) Creates a chained annotation reader for reading a component type. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Chained
resolve
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
asList, doPrivileged, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
Field Details
-
ANNOTATED_PARAMETERIZED_TYPE
private static final TypeDescription.Generic.AnnotationReader.ForComponentType.AnnotatedParameterizedType ANNOTATED_PARAMETERIZED_TYPEA dispatcher for interacting withjava.lang.reflect.AnnotatedArrayType
.
-
-
Constructor Details
-
ForComponentType
Creates a chained annotation reader for reading a component type.- Parameters:
annotationReader
- The annotation reader from which to delegate.
-
-
Method Details
-
resolve
Description copied from class:TypeDescription.Generic.AnnotationReader.Delegator.Chained
Resolves the type annotations from a given annotated element into the annotated element that this instance represents.- Specified by:
resolve
in classTypeDescription.Generic.AnnotationReader.Delegator.Chained
- Parameters:
annotatedElement
- The original annotated element.- Returns:
- The resolved annotated element.
-