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 AnnotationValue.ForDescriptionArray<U,V> extends AnnotationValue.AbstractBase<U[],V[]>
Class, Annotation and Enum
instances.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AnnotationValue.ForDescriptionArray.Loaded<W>
Represents a loaded complex array.
|
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends java.lang.annotation.Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends java.lang.Enum<U>>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.RenderingDispatcher| Modifier and Type | Field and Description |
|---|---|
private TypeDescription |
componentType
A description of the component type when it is loaded.
|
private java.lang.Class<?> |
unloadedComponentType
The component type for arrays containing unloaded versions of the annotation array's values.
|
private java.util.List<? extends AnnotationValue<?,?>> |
values
A list of values of the array elements.
|
UNDEFINED| Modifier | Constructor and Description |
|---|---|
protected |
ForDescriptionArray(java.lang.Class<?> unloadedComponentType,
TypeDescription componentType,
java.util.List<? extends AnnotationValue<?,?>> values)
Creates a new complex array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
AnnotationValue.Loaded<V[]> |
load(java.lang.ClassLoader classLoader)
Returns the loaded value of this annotation.
|
static AnnotationValue<TypeDescription[],java.lang.Class<?>[]> |
of(TypeDescription[] typeDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends java.lang.annotation.Annotation> |
of(TypeDescription annotationType,
AnnotationDescription[] annotationDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends java.lang.Enum<W>> |
of(TypeDescription enumerationType,
EnumerationDescription[] enumerationDescription)
Creates a new complex array of enumeration descriptions.
|
U[] |
resolve()
Resolves the unloaded value of this annotation.
|
java.lang.String |
toString() |
loadSilent, resolveprivate final java.lang.Class<?> unloadedComponentType
private final TypeDescription componentType
private final java.util.List<? extends AnnotationValue<?,?>> values
protected ForDescriptionArray(java.lang.Class<?> unloadedComponentType,
TypeDescription componentType,
java.util.List<? extends AnnotationValue<?,?>> values)
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.values - A list of values of the array elements.public static <W extends java.lang.Enum<W>> 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 java.lang.annotation.Annotation> 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 AnnotationValue<TypeDescription[],java.lang.Class<?>[]> of(TypeDescription[] typeDescription)
typeDescription - A description of the types contained in the array.public U[] resolve()
public AnnotationValue.Loaded<V[]> load(java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
classLoader - The class loader for loading this value.java.lang.ClassNotFoundException - If a type that represents a loaded value cannot be found.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object