Package net.bytebuddy.pool
Class TypePool.Default.TypeExtractor.AnnotationExtractor
java.lang.Object
org.objectweb.asm.AnnotationVisitor
net.bytebuddy.pool.TypePool.Default.TypeExtractor.AnnotationExtractor
- Enclosing class:
- TypePool.Default.TypeExtractor
protected class TypePool.Default.TypeExtractor.AnnotationExtractor
extends org.objectweb.asm.AnnotationVisitor
An annotation extractor reads an annotation found in a class field an collects data that
is relevant to creating a related annotation description.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
An annotation registrant for registering the values on an array that is itself an annotation property.protected class
An annotation registrant for registering values of an array. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypePool.Default.AnnotationRegistrant
The annotation registrant to register found annotation values on.private final TypePool.Default.ComponentTypeLocator
A locator for the component type of any found annotation value.Fields inherited from class org.objectweb.asm.AnnotationVisitor
api, av
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AnnotationExtractor
(String descriptor, int index, Map<Integer, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypePool.Default.ComponentTypeLocator componentTypeLocator) Creates a new annotation extractor for a byte code element with an index.protected
AnnotationExtractor
(String descriptor, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens, TypePool.Default.ComponentTypeLocator componentTypeLocator) Creates a new annotation extractor for a byte code element without an index.protected
AnnotationExtractor
(TypePool.Default.AnnotationRegistrant annotationRegistrant, TypePool.Default.ComponentTypeLocator componentTypeLocator) Creates a new annotation extractor. -
Method Summary
-
Field Details
-
annotationRegistrant
The annotation registrant to register found annotation values on. -
componentTypeLocator
A locator for the component type of any found annotation value.
-
-
Constructor Details
-
AnnotationExtractor
protected AnnotationExtractor(String descriptor, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens, TypePool.Default.ComponentTypeLocator componentTypeLocator) Creates a new annotation extractor for a byte code element without an index.- Parameters:
descriptor
- The annotation descriptor.annotationTokens
- The collection for storing any discovered annotation tokens.componentTypeLocator
- The component type locator to use.
-
AnnotationExtractor
protected AnnotationExtractor(String descriptor, int index, Map<Integer, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypePool.Default.ComponentTypeLocator componentTypeLocator) Creates a new annotation extractor for a byte code element with an index.- Parameters:
descriptor
- The annotation descriptor.index
- The index of the element for which the annotations are collected.annotationTokens
- The collection for storing any discovered annotation tokens.componentTypeLocator
- The component type locator to use.
-
AnnotationExtractor
protected AnnotationExtractor(TypePool.Default.AnnotationRegistrant annotationRegistrant, TypePool.Default.ComponentTypeLocator componentTypeLocator) Creates a new annotation extractor.- Parameters:
annotationRegistrant
- The annotation registrant to register found annotation values on.componentTypeLocator
- A locator for the component type of any found annotation value.
-
-
Method Details
-
visit
- Overrides:
visit
in classorg.objectweb.asm.AnnotationVisitor
-
visitEnum
- Overrides:
visitEnum
in classorg.objectweb.asm.AnnotationVisitor
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.AnnotationVisitor
-
visitArray
- Overrides:
visitArray
in classorg.objectweb.asm.AnnotationVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEnd
in classorg.objectweb.asm.AnnotationVisitor
-