Class AnnotationDescription.Latent.Loadable<S extends Annotation>
java.lang.Object
net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
net.bytebuddy.description.annotation.AnnotationDescription.Latent.Loadable<S>
- Type Parameters:
S- The annotation type.
- All Implemented Interfaces:
AnnotationDescription, AnnotationDescription.Loadable<S>
- Enclosing class:
AnnotationDescription.Latent
protected class AnnotationDescription.Latent.Loadable<S extends Annotation>
extends AnnotationDescription.AbstractBase
implements AnnotationDescription.Loadable<S>
A loadable annotation description of a latent annotation description.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationDescription
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S>, AnnotationDescription.RenderingDispatcher -
Field Summary
FieldsFields inherited from interface AnnotationDescription
UNDEFINED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of the annotation type of this annotation.AnnotationValue<?, ?> getValue(MethodDescription.InDefinedShape property) Returns a value of this annotation.load()Loads this annotation description.<T extends Annotation>
AnnotationDescription.Loadable<T> Links this annotation description to a given annotation type such that it can be loaded.Methods inherited from class AnnotationDescription.AbstractBase
equals, getElementTypes, getRetention, getValue, hashCode, isDocumented, isInherited, isSupportedOn, isSupportedOn, toStringMethods inherited from interface AnnotationDescription
getElementTypes, getRetention, getValue, isDocumented, isInherited, isSupportedOn, isSupportedOn
-
Field Details
-
annotationType
The annotation type.
-
-
Constructor Details
-
Loadable
-
-
Method Details
-
load
Loads this annotation description. This causes all classes referenced by the annotation value to be loaded. Without specifying a class loader, the annotation's class loader which was used to prepare this instance is used.- Specified by:
loadin interfaceAnnotationDescription.Loadable<S extends Annotation>- Returns:
- A loaded version of this annotation description.
-
getValue
Returns a value of this annotation.- Specified by:
getValuein interfaceAnnotationDescription- Parameters:
property- The property being accessed.- Returns:
- The value for the supplied property.
-
getAnnotationType
Returns a description of the annotation type of this annotation.- Specified by:
getAnnotationTypein interfaceAnnotationDescription- Returns:
- A description of the annotation type of this annotation.
-
prepare
Links this annotation description to a given annotation type such that it can be loaded. This does not cause the values of this annotation to be loaded.- Specified by:
preparein interfaceAnnotationDescription- Type Parameters:
T- The type of the annotation.- Parameters:
annotationType- The loaded annotation type of this annotation description.- Returns:
- A loadable version of this annotation description.
-