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 java.lang.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
Fields Modifier and Type Field Description private TypePool.AbstractBase.ComponentTypeReference
componentTypeReference
A lazy reference to resolve the component type of the collected array.private java.lang.String
name
The name of the annotation property the collected array is representing.private java.util.List<AnnotationValue<?,?>>
values
A list of all annotation values that are found on this array.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArrayLookup(java.lang.String name, TypePool.AbstractBase.ComponentTypeReference componentTypeReference)
Creates a new annotation registrant for an array lookup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete()
Called once all annotation values are visited.void
register(java.lang.String ignored, AnnotationValue<?,?> annotationValue)
Registers an annotation value.
-
-
-
Field Detail
-
name
private final java.lang.String name
The name of the annotation property the collected array is representing.
-
componentTypeReference
private final TypePool.AbstractBase.ComponentTypeReference componentTypeReference
A lazy reference to resolve the component type of the collected array.
-
values
private final java.util.List<AnnotationValue<?,?>> values
A list of all annotation values that are found on this array.
-
-
Constructor Detail
-
ArrayLookup
protected ArrayLookup(java.lang.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 Detail
-
register
public void register(java.lang.String ignored, AnnotationValue<?,?> annotationValue)
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
-
-