Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForArray
java.lang.Object
net.bytebuddy.description.annotation.AnnotationValue.AbstractBase<Object,Object>
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue<Object,Object>
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForArray
- All Implemented Interfaces:
AnnotationValue<Object,
Object>
- Enclosing class:
TypePool.Default.LazyTypeDescription.LazyAnnotationValue<U,
V>
private static class TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForArray
extends TypePool.Default.LazyTypeDescription.LazyAnnotationValue<Object,Object>
A lazy projection of an annotation value that contains an array of values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue
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.ForMissingType<U, V>, AnnotationValue.ForMissingValue<U, V>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher, AnnotationValue.Sort, AnnotationValue.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypePool.AbstractBase.ComponentTypeReference
A reference to the component type.private final TypePool
The type pool to use for looking up types.private final List
<AnnotationValue<?, ?>> A list of all values of this array value in their order.Fields inherited from interface net.bytebuddy.description.annotation.AnnotationValue
UNDEFINED
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ForArray
(TypePool typePool, TypePool.AbstractBase.ComponentTypeReference componentTypeReference, List<AnnotationValue<?, ?>> values) Creates a lazy projection for a non-primitive array. -
Method Summary
Modifier and TypeMethodDescriptionprotected AnnotationValue
<Object, Object> Resolves the actual annotation value.getSort()
Returns the property type of the annotation value.Methods inherited from class net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue
equals, filter, getState, hashCode, load, resolve, toString
Methods inherited from class net.bytebuddy.description.annotation.AnnotationValue.AbstractBase
filter, resolve
-
Field Details
-
typePool
The type pool to use for looking up types. -
componentTypeReference
A reference to the component type. -
values
A list of all values of this array value in their order.
-
-
Constructor Details
-
ForArray
private ForArray(TypePool typePool, TypePool.AbstractBase.ComponentTypeReference componentTypeReference, List<AnnotationValue<?, ?>> values) Creates a lazy projection for a non-primitive array.- Parameters:
typePool
- The type pool to use for looking up types.componentTypeReference
- A reference to the component type.values
- A list of all values of this array value in their order.
-
-
Method Details
-
getSort
Returns the property type of the annotation value.- Returns:
- The property type of the annotation value.
-
doResolve
Description copied from class:TypePool.Default.LazyTypeDescription.LazyAnnotationValue
Resolves the actual annotation value.- Specified by:
doResolve
in classTypePool.Default.LazyTypeDescription.LazyAnnotationValue<Object,
Object> - Returns:
- The actual annotation value.
-