private void debug(byte[] b) { ClassReader cr = new ClassReader(b); Printer p; if (compilerOptions.contains(Option.FullDebug)) { p = new Textifier(); } else { p = new SimpleTypeTextifier(); } cr.accept(new TraceClassVisitor(null, p, null), ClassReader.EXPAND_FRAMES); PrintWriter pw = new PrintWriter(System.out); p.print(pw); pw.flush(); }
@Override public void visitMaxs(int arg0, int arg1) { if (DEBUG) { PrintWriter pw = new PrintWriter(System.out); pw.write("*** Dumping ***\n"); printer.print(pw); pw.flush(); } getMethodVisitor().visitMaxs(arg0, arg1); }
public void end() { if (DEBUG) { PrintWriter pw = new PrintWriter(System.out); String className = "(unknown class)"; if (cv instanceof ClassWriter) { className = new ClassReader(((ClassWriter) cv).toByteArray()).getClassName(); } if (name != null) { pw.write("*** Dumping " + className + "." + name + " ***\n"); } else { pw.write("*** Dumping ***\n"); } printer.print(pw); pw.flush(); } getMethodVisitor().visitMaxs(1, 1); getMethodVisitor().visitEnd(); }