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.
  • Field Details

  • 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

      public void visit(String name, Object value)
      Overrides:
      visit in class org.objectweb.asm.AnnotationVisitor
    • visitEnum

      public void visitEnum(String name, String descriptor, String value)
      Overrides:
      visitEnum in class org.objectweb.asm.AnnotationVisitor
    • visitAnnotation

      public org.objectweb.asm.AnnotationVisitor visitAnnotation(String name, String descriptor)
      Overrides:
      visitAnnotation in class org.objectweb.asm.AnnotationVisitor
    • visitArray

      public org.objectweb.asm.AnnotationVisitor visitArray(String name)
      Overrides:
      visitArray in class org.objectweb.asm.AnnotationVisitor
    • visitEnd

      public void visitEnd()
      Overrides:
      visitEnd in class org.objectweb.asm.AnnotationVisitor