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 java.lang.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
Fields Modifier and Type Field Description private java.lang.String
descriptor
The descriptor of the original annotation for which the annotation values are looked up.private java.lang.String
name
The name of the original annotation for which the annotation values are looked up.private java.util.Map<java.lang.String,AnnotationValue<?,?>>
values
This annotation's values mapped by their attribute name.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationLookup(java.lang.String descriptor, java.lang.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(java.lang.String name, AnnotationValue<?,?> annotationValue)
Registers an annotation value.
-
-
-
Field Detail
-
descriptor
private final java.lang.String descriptor
The descriptor of the original annotation for which the annotation values are looked up.
-
name
private final java.lang.String name
The name of the original annotation for which the annotation values are looked up.
-
values
private final java.util.Map<java.lang.String,AnnotationValue<?,?>> values
This annotation's values mapped by their attribute name.
-
-
Constructor Detail
-
AnnotationLookup
protected AnnotationLookup(java.lang.String descriptor, java.lang.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(java.lang.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
-
-