diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2011-11-24 11:21:16 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2011-11-24 11:21:16 +0000 |
commit | 53b0445151d88092d113eb28572e88f479ba21db (patch) | |
tree | 78612c8579f240bf0fb1a2ecc0f247d87a7409fa | |
parent | 0ed0fe325e429948f5b4f06024364761d2c10a55 (diff) | |
download | javassist-53b0445151d88092d113eb28572e88f479ba21db.tar.gz javassist-53b0445151d88092d113eb28572e88f479ba21db.zip |
added parent() to jvst.bytecode.analysis.ControlFlow.java
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@603 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | src/main/javassist/bytecode/analysis/ControlFlow.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/analysis/ControlFlow.java b/src/main/javassist/bytecode/analysis/ControlFlow.java index a8b3ea69..ca81f1dd 100644 --- a/src/main/javassist/bytecode/analysis/ControlFlow.java +++ b/src/main/javassist/bytecode/analysis/ControlFlow.java @@ -41,6 +41,7 @@ import javassist.bytecode.stackmap.BasicBlock; * @see Frame * @see Analyzer * @author Shigeru Chiba + * @since 3.16 */ public class ControlFlow { private CtClass clazz; @@ -259,6 +260,12 @@ public class ControlFlow { public Block exit(int n) { return (Block)exit[n]; } /** + * Returns the parent of this block in the dominator + * tree. + */ + public Block parent() { return parent; } + + /** * Returns the number of the children of this block * in the dominator tree. */ |