U - The type of the annotation.public static class AnnotationDescription.AnnotationValue.ForAnnotation<U extends Annotation> extends Object implements AnnotationDescription.AnnotationValue<AnnotationDescription,U>
Annotation as a value of another annotation.| Modifier and Type | Class and Description | 
|---|---|
| static class  | AnnotationDescription.AnnotationValue.ForAnnotation.IncompatibleRuntimeType
 Represents an annotation value which was attempted to ba loaded by a type that does not represent
 an annotation value. | 
| static class  | AnnotationDescription.AnnotationValue.ForAnnotation.Loaded<V extends Annotation>A loaded version of the described annotation. | 
AnnotationDescription.AnnotationValue.ForAnnotation<U extends Annotation>, AnnotationDescription.AnnotationValue.ForComplexArray<U,V>, AnnotationDescription.AnnotationValue.ForEnumeration<U extends Enum<U>>, AnnotationDescription.AnnotationValue.ForType<U extends Class<U>>, AnnotationDescription.AnnotationValue.Trivial<U>| Constructor and Description | 
|---|
| ForAnnotation(AnnotationDescription annotationDescription)Creates a new annotation value for a given annotation description. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other) | 
| int | hashCode() | 
| AnnotationDescription.AnnotationValue.Loaded<U> | load(ClassLoader classLoader)Returns the loaded value of this annotation. | 
| static <V extends Annotation> | of(TypeDescription annotationType,
  Map<String,AnnotationDescription.AnnotationValue<?,?>> annotationValues)Creates an annotation value instance for describing the given annotation type and values. | 
| AnnotationDescription | resolve()Resolves the unloaded value of this annotation. | 
| String | toString() | 
public ForAnnotation(AnnotationDescription annotationDescription)
annotationDescription - The annotation description that this value represents.public static <V extends Annotation> AnnotationDescription.AnnotationValue<AnnotationDescription,V> of(TypeDescription annotationType, Map<String,AnnotationDescription.AnnotationValue<?,?>> annotationValues)
V - The type of the annotation.annotationType - The annotation type.annotationValues - The values of the annotation.public AnnotationDescription resolve()
AnnotationDescription.AnnotationValueresolve in interface AnnotationDescription.AnnotationValue<AnnotationDescription,U extends Annotation>public AnnotationDescription.AnnotationValue.Loaded<U> load(ClassLoader classLoader) throws ClassNotFoundException
AnnotationDescription.AnnotationValueload in interface AnnotationDescription.AnnotationValue<AnnotationDescription,U extends Annotation>classLoader - The class loader for loading this value.ClassNotFoundException - If a type that represents a loaded value cannot be found.Copyright © 2014–2016. All rights reserved.