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.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,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 classTypeDescription.Generic.AnnotationReader.Delegator.ChainedA chained delegator that bases its result on an underlying annotation reader.static classTypeDescription.Generic.AnnotationReader.Delegator.ForLoadedExecutableExceptionTypeA delegating annotation reader for an annotated exception variable.static classTypeDescription.Generic.AnnotationReader.Delegator.ForLoadedExecutableParameterTypeA delegating annotation reader for an annotated parameter variable.static classTypeDescription.Generic.AnnotationReader.Delegator.ForLoadedFieldA delegating annotation reader for an annotated field variable.static classTypeDescription.Generic.AnnotationReader.Delegator.ForLoadedInterfaceA delegating annotation reader for an annotated interface type.static classTypeDescription.Generic.AnnotationReader.Delegator.ForLoadedMethodReturnTypeA delegating annotation reader for an annotated return variable.static classTypeDescription.Generic.AnnotationReader.Delegator.ForLoadedRecordComponentAn annotation reader for ajava.lang.reflect.RecordComponent.static classTypeDescription.Generic.AnnotationReader.Delegator.ForLoadedSuperClassA delegating annotation reader for an annotated super type.static classTypeDescription.Generic.AnnotationReader.Delegator.ForLoadedTypeVariableA delegating annotation reader for an annotated type variable.static classTypeDescription.Generic.AnnotationReader.Delegator.SimpleA simple delegator for a givenAnnotatedElement.-
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
-
-
Constructor Summary
Constructors Constructor Description Delegator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationListasList()Returns the underlying type annotations as a list.(package private) static <T> TdoPrivileged(java.security.PrivilegedAction<T> action)A proxy forjava.security.AccessController#doPrivilegedthat is activated if available.TypeDescription.Generic.AnnotationReaderofComponentType()Returns a reader for type annotations of an array's component type.TypeDescription.Generic.AnnotationReaderofOuterClass()Returns a reader for type annotations of an inner class type's outer type.TypeDescription.Generic.AnnotationReaderofOwnerType()Returns a reader for type annotations of a parameterized type's owner type.TypeDescription.Generic.AnnotationReaderofTypeArgument(int index)Returns a reader for type annotations of a parameterized type's type argument.TypeDescription.Generic.AnnotationReaderofTypeVariableBoundType(int index)Returns a reader for type annotations of a type variable's bound.TypeDescription.Generic.AnnotationReaderofWildcardLowerBoundType(int index)Returns a reader for type annotations of an represented element's wildcard lower bound.TypeDescription.Generic.AnnotationReaderofWildcardUpperBoundType(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
-
doPrivileged
@Enhance static <T> T doPrivileged(java.security.PrivilegedAction<T> action)
A proxy forjava.security.AccessController#doPrivilegedthat is activated if available.- Type Parameters:
T- The type of the action's resolved value.- Parameters:
action- The action to execute from a privileged context.- Returns:
- The action's resolved value.
-
ofWildcardUpperBoundType
public TypeDescription.Generic.AnnotationReader ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.- Specified by:
ofWildcardUpperBoundTypein 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:
ofWildcardLowerBoundTypein 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:
ofTypeVariableBoundTypein 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:
ofTypeArgumentin 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:
ofOwnerTypein 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:
ofOuterClassin 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:
ofComponentTypein 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:
asListin interfaceTypeDescription.Generic.AnnotationReader- Returns:
- The underlying type annotations as a list.
-
-