|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jode.flow.StructuredBlock
net.sf.jode.flow.BreakBlock
Constructor Summary | |
BreakBlock(BreakableBlock breaksBlock,
boolean needsLabel)
|
Method Summary | |
void |
checkConsistent()
|
void |
dumpInstruction(TabbedPrintWriter writer)
Print the instruction expressing this structured block. |
StructuredBlock |
getNextBlock()
Returns the block where the control will normally flow to, when this block is finished. |
FlowBlock |
getNextFlowBlock()
Returns the flow block where the control will normally flow to, when this block is finished (not ignoring the jump after this block). |
boolean |
isEmpty()
Tells if this block is empty and only changes control flow. |
boolean |
jumpMayBeChanged()
|
VariableStack |
mapStackToLocal(VariableStack stack)
This is called after the analysis is completely done. |
boolean |
needsBraces()
Tells if this block needs braces when used in a if or while block. |
Methods inherited from class net.sf.jode.flow.StructuredBlock |
appendBlock, contains, copyJump, doTransformations, dumpSource, fillInGenSet, flowMayBeChanged, getDeclarables, getNextBlock, getNextFlowBlock, getSubBlocks, isSingleExit, makeDeclaration, moveJump, prependBlock, propagateUsage, removeBlock, removeJump, removeOnetimeLocals, removePush, replace, replaceSubBlock, setFlowBlock, setJump, setSuccessors, simplify, swapJump, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BreakBlock(BreakableBlock breaksBlock, boolean needsLabel)
Method Detail |
public void checkConsistent()
checkConsistent
in class StructuredBlock
public boolean isEmpty()
isEmpty
in class StructuredBlock
public StructuredBlock getNextBlock()
getNextBlock
in class StructuredBlock
public FlowBlock getNextFlowBlock()
getNextFlowBlock
in class StructuredBlock
public VariableStack mapStackToLocal(VariableStack stack)
mapStackToLocal
in class StructuredBlock
stack
- the stackmap at begin of the block
public boolean needsBraces()
needsBraces
in class StructuredBlock
public void dumpInstruction(TabbedPrintWriter writer) throws java.io.IOException
StructuredBlock
dumpInstruction
in class StructuredBlock
writer
- The tabbed print writer, where we print to.
java.io.IOException
public boolean jumpMayBeChanged()
jumpMayBeChanged
in class StructuredBlock
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |