View Javadoc
1 package net.sf.cglib.transform; 2 3 import org.objectweb.asm.Attribute; 4 import org.objectweb.asm.CodeVisitor; 5 import org.objectweb.asm.ClassVisitor; 6 import org.objectweb.asm.Label; 7 8 public class NullClassVisitor implements ClassVisitor { 9 public static final NullClassVisitor INSTANCE = new NullClassVisitor(); 10 11 public void visit(int access, String name, String superName, String[] interfaces, String sourceFile) { } 12 public void visitEnd() { } 13 public void visitField(int access, String name, String desc, Object value, Attribute attrs) { } 14 public void visitInnerClass(String name, String outerName, String innerName, int access) { } 15 public void visitAttribute(Attribute attrs) { } 16 17 public CodeVisitor visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs) { 18 return NullCodeVisitor.INSTANCE; 19 } 20 21 private static class NullCodeVisitor implements CodeVisitor { 22 public static final NullCodeVisitor INSTANCE = new NullCodeVisitor(); 23 24 public void visitFieldInsn(int opcode, String owner, String name, String desc) { } 25 public void visitIincInsn(int var, int increment) { } 26 public void visitInsn(int opcode) { } 27 public void visitIntInsn(int opcode, int operand) { } 28 public void visitJumpInsn(int opcode, Label label) { } 29 public void visitLabel(Label label) { } 30 public void visitLdcInsn(Object cst) { } 31 public void visitLineNumber(int line, Label start) { } 32 public void visitLocalVariable(String name, String desc, Label start, Label end, int index) { } 33 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { } 34 public void visitMaxs(int maxStack, int maxLocals) { } 35 public void visitMethodInsn(int opcode, String owner, String name, String desc) { } 36 public void visitMultiANewArrayInsn(String desc, int dims) { } 37 public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) { } 38 public void visitTryCatchBlock(Label start, Label end, Label handler, String type) { } 39 public void visitTypeInsn(int opcode, String desc) { } 40 public void visitVarInsn(int opcode, int var) { } 41 public void visitAttribute(Attribute attrs) { } 42 } 43 }

This page was automatically generated by Maven