[jboss-cvs] javassist SVN: r600 - trunk/src/main/javassist/bytecode/analysis.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 11 12:16:34 EST 2011


Author: chiba
Date: 2011-11-11 12:16:34 -0500 (Fri, 11 Nov 2011)
New Revision: 600

Modified:
   trunk/src/main/javassist/bytecode/analysis/ControlFlow.java
   trunk/src/main/javassist/bytecode/analysis/package.html
Log:
added javassist.bytecode.analysis.ControlFlow

Modified: trunk/src/main/javassist/bytecode/analysis/ControlFlow.java
===================================================================
--- trunk/src/main/javassist/bytecode/analysis/ControlFlow.java	2011-11-11 17:00:43 UTC (rev 599)
+++ trunk/src/main/javassist/bytecode/analysis/ControlFlow.java	2011-11-11 17:16:34 UTC (rev 600)
@@ -26,6 +26,20 @@
 /**
  * Represents the control flow graph of a given method.
  *
+ * <p>To obtain the control flow graph, do the following:</p>
+ *
+ * <pre>CtMethod m = ...
+ * ControlFlow cf = new ControlFlow(m);
+ * Block[] blocks = cf.basicBlocks();
+ * </pre>
+ *
+ * <p><code>blocks</code> is an array of basic blocks in
+ * that method body.</p>
+ *
+ * @see javassist.CtMethod
+ * @see Block
+ * @see Frame
+ * @see Analyzer
  * @author Shigeru Chiba
  */
 public class ControlFlow {

Modified: trunk/src/main/javassist/bytecode/analysis/package.html
===================================================================
--- trunk/src/main/javassist/bytecode/analysis/package.html	2011-11-11 17:00:43 UTC (rev 599)
+++ trunk/src/main/javassist/bytecode/analysis/package.html	2011-11-11 17:16:34 UTC (rev 600)
@@ -6,7 +6,7 @@
 This allows the user to determine the type state of the stack and local variable table 
 at the start of every instruction. In addition this API can be used to validate 
 bytecode, find dead bytecode, and identify unnecessary checkcasts.
-Look at <code>Analyzer</code> class first for details.
+Look at <code>ControlFlow</code> class first for details.
 
 <p>The users of this package must know the specifications of
 class file and Java bytecode.  For more details, read this book:



More information about the jboss-cvs-commits mailing list