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 and collects data that
is relevant to creating a related annotation description.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classAn annotation registrant for registering the values on an array that is itself an annotation property.protected classAn annotation registrant for registering values of an array. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypePool.Default.AnnotationRegistrantThe annotation registrant to register found annotation values on.private final TypePool.Default.ComponentTypeLocatorA locator for the component type of any found annotation value.Fields inherited from class org.objectweb.asm.AnnotationVisitor
api, av -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAnnotationExtractor(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.protectedAnnotationExtractor(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.protectedAnnotationExtractor(TypePool.Default.AnnotationRegistrant annotationRegistrant, TypePool.Default.ComponentTypeLocator componentTypeLocator) Creates a new annotation extractor. -
Method Summary
Methods inherited from class org.objectweb.asm.AnnotationVisitor
getDelegate
-
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
-
visitEnum
-
visitAnnotation
-
visitArray
- Overrides:
visitArrayin classorg.objectweb.asm.AnnotationVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classorg.objectweb.asm.AnnotationVisitor
-