|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jode.flow.StructuredBlock net.sf.jode.flow.InstructionContainer net.sf.jode.flow.ReturnBlock
public class ReturnBlock
This is the structured block for a Return block.
Constructor Summary | |
---|---|
ReturnBlock()
|
|
ReturnBlock(Expression instr)
|
|
ReturnBlock(Instruction bytecodeInstr,
Expression instr)
|
Method Summary | |
---|---|
void |
checkConsistent()
|
void |
dumpInstruction(TabbedPrintWriter writer)
Print the instruction expressing this structured block. |
boolean |
jumpMayBeChanged()
|
VariableStack |
mapStackToLocal(VariableStack stack)
This does take the instr into account and modifies stack accordingly. |
boolean |
needsBraces()
Tells if this block needs braces when used in a if or while block. |
void |
removePush()
This is called after mapStackToLocal to do the stack to local transformation. |
Methods inherited from class net.sf.jode.flow.InstructionContainer |
---|
doTransformations, fillInGenSet, getDeclarables, getInstruction, makeDeclaration, removeOnetimeLocals, setInstruction, simplify |
Methods inherited from class net.sf.jode.flow.StructuredBlock |
---|
appendBlock, contains, copyJump, dumpSource, flowMayBeChanged, getBCELInstructions, getBytecodeInstructions, getNextBlock, getNextBlock, getNextFlowBlock, getNextFlowBlock, getSubBlocks, isEmpty, isSingleExit, moveJump, prependBlock, propagateUsage, removeBlock, removeJump, replace, replaceSubBlock, setFlowBlock, setJump, setSuccessors, swapJump, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReturnBlock()
public ReturnBlock(Expression instr)
public ReturnBlock(Instruction bytecodeInstr, Expression instr)
Method Detail |
---|
public boolean jumpMayBeChanged()
jumpMayBeChanged
in class StructuredBlock
public void checkConsistent()
checkConsistent
in class StructuredBlock
public VariableStack mapStackToLocal(VariableStack stack)
mapStackToLocal
in class StructuredBlock
stack
- the stack before the instruction is called
public void removePush()
StructuredBlock
removePush
in class StructuredBlock
public boolean needsBraces()
needsBraces
in class StructuredBlock
public void dumpInstruction(TabbedPrintWriter writer) throws IOException
StructuredBlock
dumpInstruction
in class StructuredBlock
writer
- The tabbed print writer, where we print to.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |