|
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.InstructionContainer
net.sf.jode.flow.ConditionalBlock
An ConditionalBlock is the structured block representing an if instruction. The else part may be null.
Constructor Summary | |
ConditionalBlock(Expression cond)
Creates a new if conditional block. |
Method Summary | |
void |
checkConsistent()
|
boolean |
doTransformations()
Do simple transformation on the structuredBlock. |
void |
dumpInstruction(TabbedPrintWriter writer)
Print the source code for this structured block. |
StructuredBlock[] |
getSubBlocks()
Returns all sub block of this structured block. |
VariableStack |
mapStackToLocal(VariableStack stack)
This does take the instr into account and modifies stack accordingly. |
void |
removePush()
This is called after mapStackToLocal to do the stack to local transformation. |
boolean |
replaceSubBlock(StructuredBlock oldBlock,
StructuredBlock newBlock)
Replaces the given sub block with a new block. |
void |
setSuccessors(Jump[] jumps)
Sets the successors of this structured block. |
Methods inherited from class net.sf.jode.flow.InstructionContainer |
fillInGenSet, getDeclarables, getInstruction, makeDeclaration, removeOnetimeLocals, setInstruction, simplify |
Methods inherited from class net.sf.jode.flow.StructuredBlock |
appendBlock, contains, copyJump, dumpSource, flowMayBeChanged, getNextBlock, getNextBlock, getNextFlowBlock, getNextFlowBlock, isEmpty, isSingleExit, jumpMayBeChanged, moveJump, needsBraces, prependBlock, propagateUsage, removeBlock, removeJump, replace, setFlowBlock, setJump, swapJump, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConditionalBlock(Expression cond)
Method Detail |
public void checkConsistent()
checkConsistent
in class StructuredBlock
public void setSuccessors(Jump[] jumps)
setSuccessors
in class StructuredBlock
public StructuredBlock[] getSubBlocks()
getSubBlocks
in class StructuredBlock
public boolean replaceSubBlock(StructuredBlock oldBlock, StructuredBlock newBlock)
replaceSubBlock
in class StructuredBlock
oldBlock
- the old sub block.newBlock
- the new sub block.
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 void dumpInstruction(TabbedPrintWriter writer) throws java.io.IOException
dumpInstruction
in class StructuredBlock
writer
- The tabbed print writer, where we print to.
java.io.IOException
public boolean doTransformations()
StructuredBlock
doTransformations
in class InstructionContainer
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |