Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForArray
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationValue.AbstractBase<U,V>
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue<java.lang.Object,java.lang.Object>
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForArray
-
- All Implemented Interfaces:
AnnotationValue<java.lang.Object,java.lang.Object>
- Enclosing class:
- TypePool.Default.LazyTypeDescription.LazyAnnotationValue<U,V>
private static class TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForArray extends TypePool.Default.LazyTypeDescription.LazyAnnotationValue<java.lang.Object,java.lang.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 java.lang.annotation.Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends java.lang.Enum<U>>, AnnotationValue.ForIncompatibleType<U,V>, AnnotationValue.ForMismatchedType<U,V>, AnnotationValue.ForMissingType<U,V>, AnnotationValue.ForMissingValue<U,V>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher, AnnotationValue.State
-
-
Field Summary
Fields Modifier and Type Field Description private TypePool.AbstractBase.ComponentTypeReference
componentTypeReference
A reference to the component type.private TypePool
typePool
The type pool to use for looking up types.private java.util.List<AnnotationValue<?,?>>
values
A list of all values of this array value in their order.-
Fields inherited from interface net.bytebuddy.description.annotation.AnnotationValue
UNDEFINED
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ForArray(TypePool typePool, TypePool.AbstractBase.ComponentTypeReference componentTypeReference, java.util.List<AnnotationValue<?,?>> values)
Creates a lazy projection for a non-primitive array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnnotationValue<java.lang.Object,java.lang.Object>
doResolve()
Resolves the actual 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 Detail
-
typePool
private final TypePool typePool
The type pool to use for looking up types.
-
componentTypeReference
private final TypePool.AbstractBase.ComponentTypeReference componentTypeReference
A reference to the component type.
-
values
private final java.util.List<AnnotationValue<?,?>> values
A list of all values of this array value in their order.
-
-
Constructor Detail
-
ForArray
private ForArray(TypePool typePool, TypePool.AbstractBase.ComponentTypeReference componentTypeReference, java.util.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 Detail
-
doResolve
protected AnnotationValue<java.lang.Object,java.lang.Object> doResolve()
Description copied from class:TypePool.Default.LazyTypeDescription.LazyAnnotationValue
Resolves the actual annotation value.- Specified by:
doResolve
in classTypePool.Default.LazyTypeDescription.LazyAnnotationValue<java.lang.Object,java.lang.Object>
- Returns:
- The actual annotation value.
-
-