S - The type of the annotation.public static class AnnotationDescription.ForLoadedAnnotation<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  | ForLoadedAnnotation(S annotation)Creates a new annotation description for a loaded annotation. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Object | describe(Object value,
        TypeDescription typeDescription)A helper method for converting a loaded type into a representation that is also capable of representing
 unloaded descriptions of annotation values as specified by
  AnnotationDescription. | 
| 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. | 
| static <U extends Annotation> | of(U annotation)Creates a description of the given annotation. | 
| <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, isInheritedprotected ForLoadedAnnotation(S annotation)
annotation - The annotation to represent.public static <U extends Annotation> AnnotationDescription.Loadable<U> of(U annotation)
U - The type of the annotation.annotation - The annotation to be described.public static Object describe(Object value, TypeDescription typeDescription)
AnnotationDescription.value - The loaded value.typeDescription - The annotation type of the value. This cannot be inferred as enumerations
                        can implement annotation interfaces and because annotations could be implemented as
                        an enumeration what creates an ambiguity.AnnotationDescription.public S load()
AnnotationDescription.Loadablepublic S load(ClassLoader classLoader)
AnnotationDescription.LoadableclassLoader - The class loader to be used for loading the annotation's linked types.public Object getValue(MethodDescription.InDefinedShape methodDescription)
AnnotationDescriptionAnnotationDescription.methodDescription - The method for the value to be requested.public <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.public TypeDescription getAnnotationType()
AnnotationDescriptionCopyright © 2014–2016. All rights reserved.