Package net.bytebuddy.pool
Class TypePool.Default.TypeExtractor.AnnotationExtractor.ArrayLookup
java.lang.Object
net.bytebuddy.pool.TypePool.Default.TypeExtractor.AnnotationExtractor.ArrayLookup
- All Implemented Interfaces:
TypePool.Default.AnnotationRegistrant
- Enclosing class:
- TypePool.Default.TypeExtractor.AnnotationExtractor
protected class TypePool.Default.TypeExtractor.AnnotationExtractor.ArrayLookup
extends Object
implements TypePool.Default.AnnotationRegistrant
An annotation registrant for registering values of an array.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.ForByteCodeElement, TypePool.Default.AnnotationRegistrant.ForTypeVariable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypePool.AbstractBase.ComponentTypeReference
A lazy reference to resolve the component type of the collected array.private final String
The name of the annotation property the collected array is representing.private final List<AnnotationValue<?,
?>> A list of all annotation values that are found on this array. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ArrayLookup
(String name, TypePool.AbstractBase.ComponentTypeReference componentTypeReference) Creates a new annotation registrant for an array lookup. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called once all annotation values are visited.void
register
(String ignored, AnnotationValue<?, ?> annotationValue) Registers an annotation value.
-
Field Details
-
name
The name of the annotation property the collected array is representing. -
componentTypeReference
A lazy reference to resolve the component type of the collected array. -
values
A list of all annotation values that are found on this array.
-
-
Constructor Details
-
ArrayLookup
private ArrayLookup(String name, TypePool.AbstractBase.ComponentTypeReference componentTypeReference) Creates a new annotation registrant for an array lookup.- Parameters:
name
- The name of the annotation property the collected array is representing.componentTypeReference
- A lazy reference to resolve the component type of the collected array.
-
-
Method Details
-
register
Registers an annotation value.- Specified by:
register
in interfaceTypePool.Default.AnnotationRegistrant
- Parameters:
ignored
- The name of the annotation value.annotationValue
- The value of the annotation.
-
onComplete
public void onComplete()Called once all annotation values are visited.- Specified by:
onComplete
in interfaceTypePool.Default.AnnotationRegistrant
-