Package net.bytebuddy.description.type
Class TypeDescription.Generic.AnnotationReader.Delegator
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader.Delegator
-
- All Implemented Interfaces:
TypeDescription.Generic.AnnotationReader
- Direct Known Subclasses:
TypeDescription.Generic.AnnotationReader.Delegator.Chained
,TypeDescription.Generic.AnnotationReader.Delegator.ForRecordComponent
,TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedExceptionType
,TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedFieldType
,TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedInterfaceType
,TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedParameterizedType
,TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedReturnType
,TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedSuperClass
,TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedTypeVariableType
,TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.Resolved
,TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable
- Enclosing interface:
- TypeDescription.Generic.AnnotationReader
public abstract static class TypeDescription.Generic.AnnotationReader.Delegator extends java.lang.Object implements TypeDescription.Generic.AnnotationReader
A delegating annotation reader that delegates all invocations to an annotation reader that wraps the previous one.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TypeDescription.Generic.AnnotationReader.Delegator.Chained
A chained delegator that bases its result on an underlying annotation reader.protected static class
TypeDescription.Generic.AnnotationReader.Delegator.ForRecordComponent
An annotation reader for ajava.lang.reflect.RecordComponent
.-
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 static java.lang.Object[]
NO_ARGUMENTS
An empty array that can be used to indicate no arguments to avoid an allocation on a reflective call.-
Fields inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader
DISPATCHER
-
-
Constructor Summary
Constructors Constructor Description Delegator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationList
asList()
Returns the underlying type annotations as a list.TypeDescription.Generic.AnnotationReader
ofComponentType()
Returns a reader for type annotations of an array's component type.TypeDescription.Generic.AnnotationReader
ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.TypeDescription.Generic.AnnotationReader
ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.TypeDescription.Generic.AnnotationReader
ofTypeArgument(int index)
Returns a reader for type annotations of a parameterized type's type argument.TypeDescription.Generic.AnnotationReader
ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.TypeDescription.Generic.AnnotationReader
ofWildcardLowerBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard lower bound.TypeDescription.Generic.AnnotationReader
ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader
resolve
-
-
-
-
Method Detail
-
ofWildcardUpperBoundType
public TypeDescription.Generic.AnnotationReader ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.- Specified by:
ofWildcardUpperBoundType
in interfaceTypeDescription.Generic.AnnotationReader
- Parameters:
index
- The wildcard bound's index.- Returns:
- An annotation reader for the underlying annotated upper bound.
-
ofWildcardLowerBoundType
public TypeDescription.Generic.AnnotationReader ofWildcardLowerBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard lower bound.- Specified by:
ofWildcardLowerBoundType
in interfaceTypeDescription.Generic.AnnotationReader
- Parameters:
index
- The wildcard bound's index.- Returns:
- An annotation reader for the underlying annotated lower bound.
-
ofTypeVariableBoundType
public TypeDescription.Generic.AnnotationReader ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.- Specified by:
ofTypeVariableBoundType
in interfaceTypeDescription.Generic.AnnotationReader
- Parameters:
index
- The bound's index.- Returns:
- An annotation reader for the underlying annotated bound.
-
ofTypeArgument
public TypeDescription.Generic.AnnotationReader ofTypeArgument(int index)
Returns a reader for type annotations of a parameterized type's type argument.- Specified by:
ofTypeArgument
in interfaceTypeDescription.Generic.AnnotationReader
- Parameters:
index
- The bound's index.- Returns:
- An annotation reader for the underlying annotated bound..
-
ofOwnerType
public TypeDescription.Generic.AnnotationReader ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.
Important: This feature is not currently implemented by the Java reflection API.
- Specified by:
ofOwnerType
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- An annotation reader for the underlying owner type.
-
ofOuterClass
public TypeDescription.Generic.AnnotationReader ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.
Important: This feature is not currently implemented by the Java reflection API.
- Specified by:
ofOuterClass
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- An annotation reader for the underlying owner type.
-
ofComponentType
public TypeDescription.Generic.AnnotationReader ofComponentType()
Returns a reader for type annotations of an array's component type.- Specified by:
ofComponentType
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- An annotation reader for the underlying component type.
-
asList
public AnnotationList asList()
Returns the underlying type annotations as a list.- Specified by:
asList
in interfaceTypeDescription.Generic.AnnotationReader
- Returns:
- The underlying type annotations as a list.
-
-