public static class AnnotationDescription.Latent extends AnnotationDescription.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
protected class |
AnnotationDescription.Latent.Loadable<S extends Annotation>
A loadable annotation description of a latent annotation description.
|
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| Modifier | Constructor and Description |
|---|---|
protected |
Latent(TypeDescription annotationType,
Map<String,AnnotationDescription.AnnotationValue<?,?>> annotationValues)
Creates a new 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.
|
<T extends Annotation> |
prepare(Class<T> annotationType)
Links this annotation description to a given annotation type such that it can be loaded.
|
equals, getElementTypes, getRetention, getValue, hashCode, isDocumented, isInherited, toStringprotected Latent(TypeDescription annotationType, Map<String,AnnotationDescription.AnnotationValue<?,?>> annotationValues)
annotationType - The type of the annotation.annotationValues - The values of the annotation mapped by their property name.public Object getValue(MethodDescription.InDefinedShape methodDescription)
AnnotationDescriptionAnnotationDescription.methodDescription - The method for the value to be requested.public TypeDescription getAnnotationType()
AnnotationDescriptionpublic <T extends Annotation> AnnotationDescription.Latent.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.