|
|||||||||
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.InstructionBlock
public class InstructionBlock
This is the structured block for atomic instructions.
Constructor Summary | |
---|---|
InstructionBlock(Expression instr)
|
|
InstructionBlock(Instruction bytecodeInstr,
Expression instr)
|
Method Summary | |
---|---|
void |
checkDeclaration(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(Set done)
Make the declarations, i.e. |
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, getBCELInstructions, getBytecodeInstructions, 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)
public InstructionBlock(Instruction bytecodeInstr, 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(Set declareSet)
public void makeDeclaration(Set done)
makeDeclaration
in class InstructionContainer
done
- The set of the already declare variables.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 |