U - The component type of the annotation's value when it is not loaded.V - The component type of the annotation's value when it is loaded.public static class AnnotationDescription.AnnotationValue.ForComplexArray<U,V> extends Object implements AnnotationDescription.AnnotationValue<U[],V[]>
Class, Annotation and Enum
instances.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AnnotationDescription.AnnotationValue.ForComplexArray.Loaded<W>
Represents a loaded complex array.
|
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>| Modifier | Constructor and Description |
|---|---|
protected |
ForComplexArray(Class<?> unloadedComponentType,
TypeDescription componentType,
List<? extends AnnotationDescription.AnnotationValue<?,?>> annotationValues)
Creates a new complex array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
AnnotationDescription.AnnotationValue.Loaded<V[]> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
static AnnotationDescription.AnnotationValue<TypeDescription[],Class<?>[]> |
of(TypeDescription[] typeDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Annotation> |
of(TypeDescription annotationType,
AnnotationDescription[] annotationDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Enum<W>> |
of(TypeDescription enumerationType,
EnumerationDescription[] enumerationDescription)
Creates a new complex array of enumeration descriptions.
|
U[] |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
protected ForComplexArray(Class<?> unloadedComponentType, TypeDescription componentType, List<? extends AnnotationDescription.AnnotationValue<?,?>> annotationValues)
unloadedComponentType - The component type for arrays containing unloaded versions of the annotation array's values.componentType - A description of the component type when it is loaded.annotationValues - A list of values of the array elements.public static <W extends Enum<W>> AnnotationDescription.AnnotationValue<EnumerationDescription[],W[]> of(TypeDescription enumerationType, EnumerationDescription[] enumerationDescription)
W - The type of the enumeration.enumerationType - A description of the type of the enumeration.enumerationDescription - An array of enumeration descriptions.public static <W extends Annotation> AnnotationDescription.AnnotationValue<AnnotationDescription[],W[]> of(TypeDescription annotationType, AnnotationDescription[] annotationDescription)
W - The type of the annotation.annotationType - A description of the type of the annotation.annotationDescription - An array of annotation descriptions.public static AnnotationDescription.AnnotationValue<TypeDescription[],Class<?>[]> of(TypeDescription[] typeDescription)
typeDescription - A description of the types contained in the array.public U[] resolve()
AnnotationDescription.AnnotationValueresolve in interface AnnotationDescription.AnnotationValue<U[],V[]>public AnnotationDescription.AnnotationValue.Loaded<V[]> load(ClassLoader classLoader) throws ClassNotFoundException
AnnotationDescription.AnnotationValueload in interface AnnotationDescription.AnnotationValue<U[],V[]>classLoader - The class loader for loading this value.ClassNotFoundException - If a type that represents a loaded value cannot be found.Copyright © 2014–2015. All rights reserved.