Class DefaultAnnotationVisitor

java.lang.Object
org.objectweb.asm.AnnotationVisitor
org.apache.maven.shared.dependency.analyzer.asm.DefaultAnnotationVisitor

public class DefaultAnnotationVisitor extends org.objectweb.asm.AnnotationVisitor
Computes the set of classes referenced by visited code. Inspired by org.objectweb.asm.depend.DependencyVisitor in the ASM dependencies example.
Author:
Mark Hobson
  • Constructor Details

    • DefaultAnnotationVisitor

      public DefaultAnnotationVisitor(ResultCollector resultCollector, String usedByClass)

      Constructor for DefaultAnnotationVisitor.

      Parameters:
      resultCollector - a ResultCollector object.
  • 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 desc, String value)
      Overrides:
      visitEnum in class org.objectweb.asm.AnnotationVisitor
    • visitAnnotation

      public org.objectweb.asm.AnnotationVisitor visitAnnotation(String name, String desc)
      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