mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-25 11:51:15 +08:00
remove not used visitor
This commit is contained in:
parent
b75e3f5291
commit
8dd76e22ff
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user