From: chiba Date: Thu, 24 Nov 2011 11:21:16 +0000 (+0000) Subject: added parent() to jvst.bytecode.analysis.ControlFlow.java X-Git-Tag: rel_3_17_1_ga~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=53b0445151d88092d113eb28572e88f479ba21db;p=javassist.git added parent() to jvst.bytecode.analysis.ControlFlow.java git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@603 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- 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; @@ -258,6 +259,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.