From d678c6a827789d0502c407962a2648a685106fc8 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 23 Oct 1998 20:36:40 +0000 Subject: [PATCH] empty finally git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@65 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/CatchFinallyBlock.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/jode/jode/flow/CatchFinallyBlock.java b/jode/jode/flow/CatchFinallyBlock.java index 0e6e3cd..5b988b0 100644 --- a/jode/jode/flow/CatchFinallyBlock.java +++ b/jode/jode/flow/CatchFinallyBlock.java @@ -36,6 +36,23 @@ public class CatchFinallyBlock extends CatchBlock { fin.setFlowBlock(flowBlock); } + /** + * Returns the block where the control will normally flow to, when + * the given sub block is finished (not ignoring the jump + * after this block). FinallyBlock have a special behaviour, since + * the try block has the finallyblock as successor and the + * finallyblock has no default successor at all!! + * + * @return null, if the control flows to another FlowBlock. + */ + public StructuredBlock getNextBlock(StructuredBlock subBlock) { + return subBlock == tryBlock ? finallyBlock : null; + } + + public FlowBlock getNextFlowBlock(StructuredBlock subBlock) { + return null; + } + /** * Replaces the given sub block with a new block. * @param oldBlock the old sub block.