U
- The type of the annotation.public static class AnnotationValue.ForAnnotationDescription<U extends Annotation> extends AnnotationValue.AbstractBase<AnnotationDescription,U>
Annotation
as a value of another annotation.Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValue.ForAnnotationDescription.IncompatibleRuntimeType
Represents an annotation value which was attempted to ba loaded by a type that does not represent
an annotation value.
|
static class |
AnnotationValue.ForAnnotationDescription.Loaded<V extends Annotation>
A loaded version of the described annotation.
|
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.RenderingDispatcher
UNDEFINED
Constructor and Description |
---|
ForAnnotationDescription(AnnotationDescription annotationDescription)
Creates a new annotation value for a given annotation description.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
AnnotationValue.Loaded<U> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
static <V extends Annotation> |
of(TypeDescription annotationType,
Map<String,? extends 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() |
resolve
public ForAnnotationDescription(AnnotationDescription annotationDescription)
annotationDescription
- The annotation description that this value represents.public static <V extends Annotation> AnnotationValue<AnnotationDescription,V> of(TypeDescription annotationType, Map<String,? extends AnnotationValue<?,?>> annotationValues)
V
- The type of the annotation.annotationType
- The annotation type.annotationValues
- The values of the annotation.public AnnotationDescription resolve()
AnnotationValue
public AnnotationValue.Loaded<U> load(ClassLoader classLoader) throws ClassNotFoundException
AnnotationValue
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.