U
- The array type of the annotation's value when it is not loaded.V
- The array 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 Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForIncompatibleType<U,V>, AnnotationValue.ForMismatchedType<U,V>, AnnotationValue.ForMissingType<U,V>, AnnotationValue.ForMissingValue<U,V>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.RenderingDispatcher, AnnotationValue.Sort, AnnotationValue.State
UNDEFINED
Constructor and Description |
---|
ForDescriptionArray(Class<?> unloadedComponentType,
TypeDescription componentType,
List<? extends AnnotationValue<?,?>> values)
Creates a new complex array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
AnnotationValue<U,V> |
filter(MethodDescription.InDefinedShape property,
TypeDefinition typeDefinition)
Filters this annotation value as a valid value of the provided property.
|
AnnotationValue.Sort |
getSort()
Returns the property type of the annotation value.
|
AnnotationValue.State |
getState()
Returns the state of the represented annotation value.
|
int |
hashCode() |
AnnotationValue.Loaded<V> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
static 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() |
filter, resolve
public ForDescriptionArray(Class<?> unloadedComponentType, TypeDescription componentType, 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 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 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[],Class<?>[]> of(TypeDescription[] typeDescription)
typeDescription
- A description of the types contained in the array.public AnnotationValue.State getState()
public AnnotationValue.Sort getSort()
public AnnotationValue<U,V> filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)
property
- The property to filter against.typeDefinition
- The expected type.public U resolve()
public AnnotationValue.Loaded<V> load(@MaybeNull ClassLoader classLoader)
classLoader
- The class loader for loading this value or null
for using the boot loader.@CachedReturnPlugin.Enhance(value="hashCode") public int hashCode()
public boolean equals(@MaybeNull Object other)
Copyright © 2014–2024. All rights reserved.