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 net.bytebuddy.description.annotation.AnnotationDescription
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T extends Annotation>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S extends Annotation>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S extends Annotation>, AnnotationDescription.RenderingDispatcher
-
Field Summary
FieldsFields inherited from interface net.bytebuddy.description.annotation.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 net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
equals, getElementTypes, getRetention, getValue, hashCode, isDocumented, isInherited, isSupportedOn, isSupportedOn, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationDescription
getElementTypes, getRetention, getValue, isDocumented, isInherited, isSupportedOn, isSupportedOn
-
Field Details
-
annotationType
The annotation type.
-
-
Constructor Details
-
Loadable
Creates a loadable version of a latent annotation description.- Parameters:
annotationType
- The annotation type.
-
-
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:
load
in interfaceAnnotationDescription.Loadable<S extends Annotation>
- Returns:
- A loaded version of this annotation description.
-
getValue
Returns a value of this annotation.- Specified by:
getValue
in 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:
getAnnotationType
in 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:
prepare
in 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.
-