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 TypePool.Default.AnnotationRegistrant
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.ForByteCodeElement, TypePool.Default.AnnotationRegistrant.ForTypeVariable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe descriptor of the original annotation for which the annotation values are looked up.private final StringThe 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
ConstructorsModifierConstructorDescriptionprotectedAnnotationLookup(String descriptor, String name) Creates a new annotation registrant for a recursive annotation lookup. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled once all annotation values are visited.voidregister(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:
registerin 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:
onCompletein interfaceTypePool.Default.AnnotationRegistrant
-