Class DefaultMethodVisitor

java.lang.Object
org.objectweb.asm.MethodVisitor
org.apache.maven.shared.dependency.analyzer.asm.DefaultMethodVisitor

public class DefaultMethodVisitor extends org.objectweb.asm.MethodVisitor
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.MethodVisitor

    api, mv
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultMethodVisitor(org.objectweb.asm.AnnotationVisitor annotationVisitor, org.objectweb.asm.signature.SignatureVisitor signatureVisitor, ResultCollector resultCollector)
    Constructor for DefaultMethodVisitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.objectweb.asm.AnnotationVisitor
    visitAnnotation(String desc, boolean visible)
    void
    visitFieldInsn(int opcode, String owner, String name, String desc)
    void
    void
    visitLocalVariable(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index)
    org.objectweb.asm.AnnotationVisitor
    visitLocalVariableAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String desc, boolean visible)
    void
    visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf)
    void
    org.objectweb.asm.AnnotationVisitor
    visitParameterAnnotation(int parameter, String desc, boolean visible)
    void
    visitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type)
    org.objectweb.asm.AnnotationVisitor
    visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible)
    void
    visitTypeInsn(int opcode, String desc)

    Methods inherited from class org.objectweb.asm.MethodVisitor

    getDelegate, visitAnnotableParameterCount, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLineNumber, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitParameter, visitTableSwitchInsn, visitTryCatchAnnotation, visitVarInsn

    Methods inherited from class java.lang.Object

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

    • DefaultMethodVisitor

      public DefaultMethodVisitor(org.objectweb.asm.AnnotationVisitor annotationVisitor, org.objectweb.asm.signature.SignatureVisitor signatureVisitor, ResultCollector resultCollector)

      Constructor for DefaultMethodVisitor.

      Parameters:
      annotationVisitor - a AnnotationVisitor object.
      signatureVisitor - a SignatureVisitor object.
      resultCollector - a ResultCollector object.
  • Method Details

    • visitAnnotation

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

      public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible)
      Overrides:
      visitTypeAnnotation in class org.objectweb.asm.MethodVisitor
    • visitParameterAnnotation

      public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible)
      Overrides:
      visitParameterAnnotation in class org.objectweb.asm.MethodVisitor
    • visitLocalVariableAnnotation

      public org.objectweb.asm.AnnotationVisitor visitLocalVariableAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String desc, boolean visible)
      Overrides:
      visitLocalVariableAnnotation in class org.objectweb.asm.MethodVisitor
    • visitTypeInsn

      public void visitTypeInsn(int opcode, String desc)
      Overrides:
      visitTypeInsn in class org.objectweb.asm.MethodVisitor
    • visitFieldInsn

      public void visitFieldInsn(int opcode, String owner, String name, String desc)
      Overrides:
      visitFieldInsn in class org.objectweb.asm.MethodVisitor
    • visitMethodInsn

      public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf)
      Overrides:
      visitMethodInsn in class org.objectweb.asm.MethodVisitor
    • visitLdcInsn

      public void visitLdcInsn(Object cst)
      Overrides:
      visitLdcInsn in class org.objectweb.asm.MethodVisitor
    • visitMultiANewArrayInsn

      public void visitMultiANewArrayInsn(String desc, int dims)
      Overrides:
      visitMultiANewArrayInsn in class org.objectweb.asm.MethodVisitor
    • visitTryCatchBlock

      public void visitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type)
      Overrides:
      visitTryCatchBlock in class org.objectweb.asm.MethodVisitor
    • visitLocalVariable

      public void visitLocalVariable(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index)
      Overrides:
      visitLocalVariable in class org.objectweb.asm.MethodVisitor