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 -
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.
-
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
-