S - The annotation type.protected class AnnotationDescription.Latent.Loadable<S extends Annotation> extends AnnotationDescription.AbstractBase.ForPrepared<S>
AnnotationDescription.AbstractBase.ForPrepared<S extends Annotation>AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T extends Annotation>, AnnotationDescription.AnnotationValue<T,S>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S extends Annotation>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S extends Annotation>ERROR_MESSAGE| Modifier | Constructor and Description |
|---|---|
protected |
Loadable(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.
|
Object |
getValue(MethodDescription.InDefinedShape methodDescription)
Returns the value of the given method for this annotation value.
|
S |
load()
Loads this annotation description.
|
S |
load(ClassLoader classLoader)
Loads this annotation description.
|
<T extends Annotation> |
prepare(Class<T> annotationType)
Links this annotation description to a given annotation type such that it can be loaded.
|
loadSilent, loadSilentequals, getElementTypes, getRetention, getValue, hashCode, isDocumented, isInherited, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetElementTypes, getRetention, getValue, isDocumented, isInheritedpublic S load() throws ClassNotFoundException
AnnotationDescription.LoadableClassNotFoundException - If any linked classes of the annotation cannot be loaded.public S load(ClassLoader classLoader) throws ClassNotFoundException
AnnotationDescription.LoadableclassLoader - The class loader to be used for loading the annotation's linked types.ClassNotFoundException - If any linked classes of the annotation cannot be loaded.public Object getValue(MethodDescription.InDefinedShape methodDescription)
AnnotationDescriptionAnnotationDescription.methodDescription - The method for the value to be requested.public TypeDescription getAnnotationType()
AnnotationDescriptionpublic <T extends Annotation> AnnotationDescription.Loadable<T> prepare(Class<T> annotationType)
AnnotationDescriptionT - The type of the annotation.annotationType - The loaded annotation type of this annotation description.Copyright © 2014–2016. All rights reserved.