Kaynağa Gözat

added javassist.bytecode.analysis.ControlFlow

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@600 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 12 yıl önce
ebeveyn
işleme
97ab034c5d

+ 14
- 0
src/main/javassist/bytecode/analysis/ControlFlow.java Dosyayı Görüntüle

@@ -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 {

+ 1
- 1
src/main/javassist/bytecode/analysis/package.html Dosyayı Görüntüle

@@ -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:

Loading…
İptal
Kaydet