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 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 ClassesModifier and TypeClassDescriptionprotected static classA chained delegator that bases its result on an underlying annotation reader.static classA delegating annotation reader for an annotated exception variable.static classA delegating annotation reader for an annotated parameter variable.static classA delegating annotation reader for an annotated field variable.static classA delegating annotation reader for an annotated interface type.static classA delegating annotation reader for an annotated return variable.static classAn annotation reader for ajava.lang.reflect.RecordComponent.static classA delegating annotation reader for an annotated super type.static classA delegating annotation reader for an annotated type variable.static classA 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 -
Method Summary
Modifier and TypeMethodDescriptionasList()Returns the underlying type annotations as a list.(package private) static <T> TdoPrivileged(PrivilegedAction<T> action) A proxy forjava.security.AccessController#doPrivilegedthat is activated if available.Returns a reader for type annotations of an array's component type.Returns a reader for type annotations of an inner class type's outer type.Returns a reader for type annotations of a parameterized type's owner type.ofTypeArgument(int index) Returns a reader for type annotations of a parameterized type's type argument.ofTypeVariableBoundType(int index) Returns a reader for type annotations of a type variable's bound.ofWildcardLowerBoundType(int index) Returns a reader for type annotations of an represented element's wildcard lower bound.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, waitMethods inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.AnnotationReader
resolve
-
Constructor Details
-
Delegator
public Delegator()
-
-
Method Details
-
doPrivileged
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
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
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
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
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
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
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
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
Returns the underlying type annotations as a list.- Specified by:
asListin interfaceTypeDescription.Generic.AnnotationReader- Returns:
- The underlying type annotations as a list.
-