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.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 protected TypeDescription.Generic.AnnotationReader
annotationReader
The underlying annotation reader.protected static java.lang.reflect.Method
NOT_AVAILABLE
Indicates that a method is not available on the current VM.-
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
Chained(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a new chained annotation reader.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static java.lang.reflect.Method
of(java.lang.String typeName, java.lang.String methodName)
Resolves the method to invoke or returnsnull
if the method does not exist on the current VM.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, ofComponentType, ofOuterClass, ofOwnerType, ofTypeArgument, ofTypeVariableBoundType, ofWildcardLowerBoundType, ofWildcardUpperBoundType
-
-
-
-
Field Detail
-
NOT_AVAILABLE
protected static final java.lang.reflect.Method NOT_AVAILABLE
Indicates that a method is not available on the current VM.
-
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
-
of
protected static java.lang.reflect.Method of(java.lang.String typeName, java.lang.String methodName)
Resolves the method to invoke or returnsnull
if the method does not exist on the current VM.- Parameters:
typeName
- The declaring type's name.methodName
- The method's name.- Returns:
- The resolved method or
null
.
-
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.
-
-