]> source.dussan.org Git - javassist.git/commitdiff
added parent() to jvst.bytecode.analysis.ControlFlow.java
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Thu, 24 Nov 2011 11:21:16 +0000 (11:21 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Thu, 24 Nov 2011 11:21:16 +0000 (11:21 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@603 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/bytecode/analysis/ControlFlow.java

index a8b3ea693169f11f56a1d3245c91da90e47a2914..ca81f1dd1717c1b5f7c7f3349643701f6c67d302 100644 (file)
@@ -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.