/** * Prints all the methods declared in the given class. */ public static void print(CtClass clazz, PrintStream stream) { (new FramePrinter(stream)).print(clazz); }
stream.println("\n" + getMethodString(method)); MethodInfo info = method.getMethodInfo2(); ConstPool pool = info.getConstPool(); addSpacing(spacing + 3); Frame frame = frames[pos]; if (frame == null) { continue; printStack(frame); addSpacing(spacing + 3); printLocals(frame);
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java javassist.tools.framedump <fully-qualified class name>"); return; } ClassPool pool = ClassPool.getDefault(); CtClass clazz = pool.get(args[0]); System.out.println("Frame Dump of " + clazz.getName() + ":"); FramePrinter.print(clazz, System.out); } }
/** * Prints all the methods declared in the given class. */ public void print(CtClass clazz) { CtMethod[] methods = clazz.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { print(methods[i]); } }
stream.println("\n" + getMethodString(method)); MethodInfo info = method.getMethodInfo2(); ConstPool pool = info.getConstPool(); addSpacing(spacing + 3); Frame frame = frames[pos]; if (frame == null) { continue; printStack(frame); addSpacing(spacing + 3); printLocals(frame);
/** * Prints all the methods declared in the given class. */ public static void print(CtClass clazz, PrintStream stream) { (new FramePrinter(stream)).print(clazz); }
/** * Prints all the methods declared in the given class. */ public void print(CtClass clazz) { CtMethod[] methods = clazz.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { print(methods[i]); } }
stream.println("\n" + getMethodString(method)); MethodInfo info = method.getMethodInfo2(); ConstPool pool = info.getConstPool(); addSpacing(spacing + 3); Frame frame = frames[pos]; if (frame == null) { continue; printStack(frame); addSpacing(spacing + 3); printLocals(frame);
/** * Prints all the methods declared in the given class. */ public static void print(CtClass clazz, PrintStream stream) { (new FramePrinter(stream)).print(clazz); }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java javassist.tools.framedump <fully-qualified class name>"); return; } ClassPool pool = ClassPool.getDefault(); CtClass clazz = pool.get(args[0]); System.out.println("Frame Dump of " + clazz.getName() + ":"); FramePrinter.print(clazz, System.out); } }
stream.println("\n" + getMethodString(method)); MethodInfo info = method.getMethodInfo2(); ConstPool pool = info.getConstPool(); addSpacing(spacing + 3); Frame frame = frames[pos]; if (frame == null) { continue; printStack(frame); addSpacing(spacing + 3); printLocals(frame);
/** * Prints all the methods declared in the given class. */ public static void print(CtClass clazz, PrintStream stream) { (new FramePrinter(stream)).print(clazz); }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java javassist.tools.framedump <class file name>"); return; } ClassPool pool = ClassPool.getDefault(); CtClass clazz = pool.get(args[0]); System.out.println("Frame Dump of " + clazz.getName() + ":"); FramePrinter.print(clazz, System.out); } }
stream.println("\n" + getMethodString(method)); MethodInfo info = method.getMethodInfo2(); ConstPool pool = info.getConstPool(); addSpacing(spacing + 3); Frame frame = frames[pos]; if (frame == null) { continue; printStack(frame); addSpacing(spacing + 3); printLocals(frame);
/** * Prints all the methods declared in the given class. */ public static void print(CtClass clazz, PrintStream stream) { (new FramePrinter(stream)).print(clazz); }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java javassist.tools.framedump <class file name>"); return; } ClassPool pool = ClassPool.getDefault(); CtClass clazz = pool.get(args[0]); System.out.println("Frame Dump of " + clazz.getName() + ":"); FramePrinter.print(clazz, System.out); } }
stream.println("\n" + getMethodString(method)); MethodInfo info = method.getMethodInfo2(); ConstPool pool = info.getConstPool(); addSpacing(spacing + 3); Frame frame = frames[pos]; if (frame == null) { continue; printStack(frame); addSpacing(spacing + 3); printLocals(frame);
/** * Prints all the methods declared in the given class. */ public static void print(CtClass clazz, PrintStream stream) { (new FramePrinter(stream)).print(clazz); }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java javassist.tools.framedump <class file name>"); return; } ClassPool pool = ClassPool.getDefault(); CtClass clazz = pool.get(args[0]); System.out.println("Frame Dump of " + clazz.getName() + ":"); FramePrinter.print(clazz, System.out); } }
/** * Prints all the methods declared in the given class. */ public void print(CtClass clazz) { CtMethod[] methods = clazz.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { print(methods[i]); } }