remove not used visitor

This commit is contained in:
金戟 2020-07-22 22:42:58 +08:00
parent b75e3f5291
commit 8dd76e22ff

View File

@ -1,40 +0,0 @@
package com.alibaba.testable.visitor;
import com.alibaba.testable.model.MethodInfo;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import java.util.List;
/**
* @author flin
*/
public class TestableVisitor extends ClassVisitor {
private List<MethodInfo> methods;
public TestableVisitor(ClassWriter cw, List<MethodInfo> methods) {
super(Opcodes.ASM8, cw);
this.methods = methods;
}
@Override
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
System.out.println(name + " extends " + superName + " {");
super.visit(version, access, name, signature, superName, interfaces);
}
@Override
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
System.out.println(" " + name + desc);
return super.visitMethod(access, name, desc, signature, exceptions);
}
@Override
public void visitEnd() {
System.out.println("}");
super.visitEnd();
}
}