public static class AnnotationDescription.Latent extends AnnotationDescription.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
protected class |
AnnotationDescription.Latent.Loadable<S extends java.lang.annotation.Annotation>
A loadable annotation description of a latent annotation description.
|
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| Modifier and Type | Field and Description |
|---|---|
private TypeDescription |
annotationType
The type of the annotation.
|
private java.util.Map<java.lang.String,? extends AnnotationValue<?,?>> |
annotationValues
The values of the annotation mapped by their property name.
|
UNDEFINED| Modifier | Constructor and Description |
|---|---|
protected |
Latent(TypeDescription annotationType,
java.util.Map<java.lang.String,? extends 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.
|
AnnotationValue<?,?> |
getValue(MethodDescription.InDefinedShape property)
Returns the value of this annotation.
|
<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.
|
equals, getElementTypes, getRetention, hashCode, isDocumented, isInherited, toStringprivate final TypeDescription annotationType
private final java.util.Map<java.lang.String,? extends AnnotationValue<?,?>> annotationValues
protected Latent(TypeDescription annotationType, java.util.Map<java.lang.String,? extends AnnotationValue<?,?>> annotationValues)
annotationType - The type of the annotation.annotationValues - The values of the annotation mapped by their property name.public AnnotationValue<?,?> getValue(MethodDescription.InDefinedShape property)
property - The property being accessed.public TypeDescription getAnnotationType()
public <T extends java.lang.annotation.Annotation> AnnotationDescription.Latent.Loadable<T> prepare(java.lang.Class<T> annotationType)
T - The type of the annotation.annotationType - The loaded annotation type of this annotation description.