|
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.InstructionBlock
This is the structured block for atomic instructions.
Constructor Summary | |
InstructionBlock(Expression instr)
|
Method Summary | |
void |
checkDeclaration(java.util.Set declareSet)
Check if this is an local store instruction to a not yet declared variable. |
void |
dumpInstruction(TabbedPrintWriter writer)
Print the instruction expressing this structured block. |
void |
makeDeclaration(java.util.Set done)
Make the declarations, i.e. initialize the declare variable to correct values. |
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, removeOnetimeLocals, setInstruction, simplify |
Methods inherited from class net.sf.jode.flow.StructuredBlock |
appendBlock, checkConsistent, contains, copyJump, dumpSource, flowMayBeChanged, getNextBlock, getNextBlock, getNextFlowBlock, getNextFlowBlock, getSubBlocks, isEmpty, isSingleExit, jumpMayBeChanged, 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 InstructionBlock(Expression instr)
Method Detail |
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 checkDeclaration(java.util.Set declareSet)
public void makeDeclaration(java.util.Set done)
makeDeclaration
in class InstructionContainer
done
- The set of the already declare variables.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
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |