[jboss-cvs] javassist/src/main/javassist/bytecode/analysis ...
Shigeru Chiba
chiba at is.titech.ac.jp
Sat Feb 28 20:56:58 EST 2009
User: chiba
Date: 09/02/28 20:56:58
Modified: src/main/javassist/bytecode/analysis FramePrinter.java
Log:
for preparing 3.10 release
Revision Changes Path
1.2 +12 -1 javassist/src/main/javassist/bytecode/analysis/FramePrinter.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FramePrinter.java
===================================================================
RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/analysis/FramePrinter.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- FramePrinter.java 24 May 2008 05:12:52 -0000 1.1
+++ FramePrinter.java 1 Mar 2009 01:56:58 -0000 1.2
@@ -37,14 +37,23 @@
public final class FramePrinter {
private final PrintStream stream;
+ /**
+ * Constructs a bytecode printer.
+ */
public FramePrinter(PrintStream stream) {
this.stream = stream;
}
+ /**
+ * 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++) {
@@ -62,6 +71,9 @@
}
}
+ /**
+ * Prints the instructions and the frame states of the given method.
+ */
public void print(CtMethod method) {
stream.println("\n" + getMethodString(method));
MethodInfo info = method.getMethodInfo2();
@@ -132,5 +144,4 @@
while (count-- > 0)
stream.print(' ');
}
-
}
More information about the jboss-cvs-commits
mailing list