S - The annotation type.protected class AnnotationDescription.Latent.Loadable<S extends java.lang.annotation.Annotation> extends AnnotationDescription.AbstractBase.ForPrepared<S>
AnnotationDescription.AbstractBase.ForPrepared<S extends java.lang.annotation.Annotation>AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T extends java.lang.annotation.Annotation>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S extends java.lang.annotation.Annotation>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<S> |
annotationType
The annotation type.
|
UNDEFINED| Modifier | Constructor and Description |
|---|---|
protected |
Loadable(java.lang.Class<S> annotationType)
Creates a loadable version of a latent annotation description.
|
| Modifier and Type | Method and Description |
|---|---|
TypeDescription |
getAnnotationType()
Returns a description of the annotation type of this annotation.
|
AnnotationValue<?,?> |
getValue(MethodDescription.InDefinedShape property)
Returns the value of this annotation.
|
S |
load()
Loads this annotation description.
|
<T extends java.lang.annotation.Annotation> |
prepare(java.lang.Class<T> annotationType)
Links this annotation description to a given annotation type such that it can be loaded.
|
loadSilentequals, getElementTypes, getRetention, hashCode, isDocumented, isInherited, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetElementTypes, getRetention, isDocumented, isInheritedprivate final java.lang.Class<S extends java.lang.annotation.Annotation> annotationType
protected Loadable(java.lang.Class<S> annotationType)
annotationType - The annotation type.public S load() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - If any linked classes of the annotation cannot be loaded.public AnnotationValue<?,?> getValue(MethodDescription.InDefinedShape property)
property - The property being accessed.public TypeDescription getAnnotationType()
public <T extends java.lang.annotation.Annotation> AnnotationDescription.Loadable<T> prepare(java.lang.Class<T> annotationType)
T - The type of the annotation.annotationType - The loaded annotation type of this annotation description.