S
- The annotation type.private static class TypePool.Default.LazyTypeDescription.LazyAnnotationDescription.Loadable<S extends java.lang.annotation.Annotation> extends TypePool.Default.LazyTypeDescription.LazyAnnotationDescription implements AnnotationDescription.Loadable<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 loaded annotation type.
|
typePool, values
UNDEFINED
Modifier | Constructor and Description |
---|---|
private |
Loadable(TypePool typePool,
java.lang.Class<S> annotationType,
java.util.Map<java.lang.String,AnnotationValue<?,?>> values)
Creates a new loadable version of a lazy annotation.
|
Modifier and Type | Method and Description |
---|---|
S |
load()
Loads this annotation description.
|
S |
loadSilent()
Loads this annotation description.
|
asList, asListOfNullable, getAnnotationType, getValue, prepare
equals, getElementTypes, getRetention, hashCode, isDocumented, isInherited, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotationType, getElementTypes, getRetention, getValue, isDocumented, isInherited, prepare
private final java.lang.Class<S extends java.lang.annotation.Annotation> annotationType
private Loadable(TypePool typePool, java.lang.Class<S> annotationType, java.util.Map<java.lang.String,AnnotationValue<?,?>> values)
typePool
- The type pool to be used for looking up linked types.annotationType
- The annotation's loaded type.values
- A map of annotation value names to their value representations.public S load() throws java.lang.ClassNotFoundException
load
in interface AnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>
java.lang.ClassNotFoundException
- If any linked classes of the annotation cannot be loaded.public S loadSilent()
ClassNotFoundException
is wrapped in an IllegalStateException
.loadSilent
in interface AnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>