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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationLookup(String descriptor, String name)
Creates a new annotation registrant for a recursive annotation 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(String name, AnnotationValue<?,?> annotationValue)
Registers an annotation value.
-
-
-
Constructor Detail
-
AnnotationLookup
protected AnnotationLookup(String descriptor, String name)
Creates a new annotation registrant for a recursive annotation lookup.- Parameters:
name
- The name of the original annotation for which the annotation values are looked up.descriptor
- The descriptor of the original annotation for which the annotation values are looked up.
-
-
Method Detail
-
register
public void register(String name, AnnotationValue<?,?> annotationValue)
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
-
-