git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@63 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent f26415d787
commit 8e85cb55fe
  1. 14
      jode/jode/flow/ThrowBlock.java

@ -24,17 +24,9 @@ import jode.Instruction;
/** /**
* This is the structured block for an Throw block. * This is the structured block for an Throw block.
*/ */
public class ThrowBlock extends InstructionContainer { public class ThrowBlock extends ReturnBlock {
public ThrowBlock(Instruction instr) { public ThrowBlock(Instruction instr, Jump jump) {
super(instr); super(instr, jump);
}
/**
* Tells if this block needs braces when used in a if or while block.
* @return true if this block should be sorrounded by braces.
*/
public boolean needsBraces() {
return declare != null && !declare.isEmpty();
} }
public void dumpInstruction(TabbedPrintWriter writer) public void dumpInstruction(TabbedPrintWriter writer)

Loading…
Cancel
Save