protected static class TypePool.AbstractBase.RawNonPrimitiveArray extends AnnotationValue.AbstractBase<Object[],Object[]>
Modifier and Type | Class and Description |
---|---|
static interface |
TypePool.AbstractBase.RawNonPrimitiveArray.ComponentTypeReference
A lazy representation of the component type of an array.
|
protected static class |
TypePool.AbstractBase.RawNonPrimitiveArray.Loaded
Represents a loaded annotation property representing a complex array.
|
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotation<U extends Annotation>, AnnotationValue.ForComplexArray<U,V>, AnnotationValue.ForConstant<U>, AnnotationValue.ForEnumeration<U extends Enum<U>>, AnnotationValue.ForType<U extends Class<U>>
UNDEFINED
Constructor and Description |
---|
RawNonPrimitiveArray(TypePool typePool,
TypePool.AbstractBase.RawNonPrimitiveArray.ComponentTypeReference componentTypeReference,
List<AnnotationValue<?,?>> value)
Creates a new array value representation of a complex array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
AnnotationValue.Loaded<Object[]> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
Object[] |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
resolve
public RawNonPrimitiveArray(TypePool typePool, TypePool.AbstractBase.RawNonPrimitiveArray.ComponentTypeReference componentTypeReference, List<AnnotationValue<?,?>> value)
typePool
- The type pool to use for looking up types.componentTypeReference
- A lazy reference to the component type of this array.value
- A list of all values of this annotation.public Object[] resolve()
AnnotationValue
public AnnotationValue.Loaded<Object[]> 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.