diff options
-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. */ |