protected class TypePool.Default.TypeExtractor.AnnotationExtractor.ArrayLookup extends java.lang.Object implements TypePool.Default.AnnotationRegistrant
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.ForByteCodeElement, TypePool.Default.AnnotationRegistrant.ForTypeVariable
Modifier and Type | Field and Description |
---|---|
private TypePool.AbstractBase.RawDescriptionArray.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.
|
Modifier | Constructor and Description |
---|---|
protected |
ArrayLookup(java.lang.String name,
TypePool.AbstractBase.RawDescriptionArray.ComponentTypeReference componentTypeReference)
Creates a new annotation registrant for an array lookup.
|
Modifier and Type | Method and Description |
---|---|
void |
onComplete()
Called once all annotation values are visited.
|
void |
register(java.lang.String ignored,
AnnotationValue<?,?> annotationValue)
Registers an annotation value.
|
private final java.lang.String name
private final TypePool.AbstractBase.RawDescriptionArray.ComponentTypeReference componentTypeReference
private final java.util.List<AnnotationValue<?,?>> values
protected ArrayLookup(java.lang.String name, TypePool.AbstractBase.RawDescriptionArray.ComponentTypeReference componentTypeReference)
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.public void register(java.lang.String ignored, AnnotationValue<?,?> annotationValue)
register
in interface TypePool.Default.AnnotationRegistrant
ignored
- The name of the annotation value.annotationValue
- The value of the annotation.public void onComplete()
onComplete
in interface TypePool.Default.AnnotationRegistrant