empty finally

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@65 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 27 years ago
parent ca73cde68f
commit d678c6a827
  1. 17
      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 (<em>not</em> 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.

Loading…
Cancel
Save