git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@600 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -26,6 +26,20 @@ import javassist.bytecode.stackmap.BasicBlock; | |||
/** | |||
* 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 { |
@@ -6,7 +6,7 @@ Bytecode Analysis API. | |||
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: |