Package net.bytebuddy.pool
Class TypePool.Default.TypeExtractor.AnnotationExtractor.AnnotationLookup
java.lang.Object
net.bytebuddy.pool.TypePool.Default.TypeExtractor.AnnotationExtractor.AnnotationLookup
- All Implemented Interfaces:
TypePool.Default.AnnotationRegistrant
- Enclosing class:
TypePool.Default.TypeExtractor.AnnotationExtractor
protected class TypePool.Default.TypeExtractor.AnnotationExtractor.AnnotationLookup
extends Object
implements TypePool.Default.AnnotationRegistrant
An annotation registrant for registering the values on an array that is itself an annotation property.
-
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 String
The descriptor of the original annotation for which the annotation values are looked up.private final String
The name of the original annotation for which the annotation values are looked up.private final Map
<String, AnnotationValue<?, ?>> This annotation's values mapped by their attribute name. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AnnotationLookup
(String descriptor, String name) Creates a new annotation registrant for a recursive annotation lookup. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called once all annotation values are visited.void
register
(String name, AnnotationValue<?, ?> annotationValue) Registers an annotation value.
-
Field Details
-
descriptor
The descriptor of the original annotation for which the annotation values are looked up. -
name
The name of the original annotation for which the annotation values are looked up. -
values
This annotation's values mapped by their attribute name.
-
-
Constructor Details
-
AnnotationLookup
Creates a new annotation registrant for a recursive annotation lookup.- Parameters:
descriptor
- The descriptor of the original annotation for which the annotation values are looked up.name
- The name of the original annotation for which the annotation values are looked up.
-
-
Method Details
-
register
Registers an annotation value.- Specified by:
register
in interfaceTypePool.Default.AnnotationRegistrant
- Parameters:
name
- 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
-