Class DefaultClassVisitor

java.lang.Object
org.objectweb.asm.ClassVisitor
org.apache.maven.shared.dependency.analyzer.asm.DefaultClassVisitor

public class DefaultClassVisitor extends org.objectweb.asm.ClassVisitor
Computes the set of classes referenced by visited code. Inspired by org.objectweb.asm.depend.DependencyVisitor in the ASM dependencies example.
Author:
Mark Hobson
  • Field Summary

    Fields inherited from class org.objectweb.asm.ClassVisitor

    api, cv
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultClassVisitor(org.objectweb.asm.signature.SignatureVisitor signatureVisitor, org.objectweb.asm.AnnotationVisitor annotationVisitor, org.objectweb.asm.FieldVisitor fieldVisitor, org.objectweb.asm.MethodVisitor methodVisitor, ResultCollector resultCollector, String usedByClass)
    Constructor for DefaultClassVisitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visit(int version, int access, String name, String signature, String superName, String[] interfaces)
    visit.
    org.objectweb.asm.AnnotationVisitor
    visitAnnotation(String desc, boolean visible)
    org.objectweb.asm.FieldVisitor
    visitField(int access, String name, String desc, String signature, Object value)
    org.objectweb.asm.MethodVisitor
    visitMethod(int access, String name, String desc, String signature, String[] exceptions)
    visitMethod.
    void
    void
    visitNestMember(String nestMember)

    Methods inherited from class org.objectweb.asm.ClassVisitor

    getDelegate, visitAttribute, visitEnd, visitInnerClass, visitModule, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultClassVisitor

      public DefaultClassVisitor(org.objectweb.asm.signature.SignatureVisitor signatureVisitor, org.objectweb.asm.AnnotationVisitor annotationVisitor, org.objectweb.asm.FieldVisitor fieldVisitor, org.objectweb.asm.MethodVisitor methodVisitor, ResultCollector resultCollector, String usedByClass)

      Constructor for DefaultClassVisitor.

      Parameters:
      signatureVisitor - a SignatureVisitor object.
      annotationVisitor - a AnnotationVisitor object.
      fieldVisitor - a FieldVisitor object.
      methodVisitor - a MethodVisitor object.
      resultCollector - a ResultCollector object.
  • Method Details

    • visit

      public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)

      visit.

      Overrides:
      visit in class org.objectweb.asm.ClassVisitor
      Parameters:
      version - a int.
      access - a int.
      name - a String object.
      signature - a String object.
      superName - a String object.
      interfaces - an array of String objects.
    • visitAnnotation

      public org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
      Overrides:
      visitAnnotation in class org.objectweb.asm.ClassVisitor
    • visitField

      public org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
      Overrides:
      visitField in class org.objectweb.asm.ClassVisitor
    • visitMethod

      public org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)

      visitMethod.

      Overrides:
      visitMethod in class org.objectweb.asm.ClassVisitor
      Parameters:
      access - a int.
      name - a String object.
      desc - a String object.
      signature - a String object.
      exceptions - an array of String objects.
      Returns:
      a MethodVisitor object.
    • visitNestHost

      public void visitNestHost(String nestHost)
      Overrides:
      visitNestHost in class org.objectweb.asm.ClassVisitor
    • visitNestMember

      public void visitNestMember(String nestMember)
      Overrides:
      visitNestMember in class org.objectweb.asm.ClassVisitor