|
|||||||||
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
public abstract class InstructionContainer
This is a method for block containing a single instruction.
Constructor Summary | |
---|---|
InstructionContainer(Expression instr)
|
|
InstructionContainer(Instruction bytecodeInstr,
Expression instr)
|
Method Summary | |
---|---|
boolean |
doTransformations()
Do simple transformation on the structuredBlock. |
void |
fillInGenSet(Set in,
Set gen)
Fill all in variables into the given VariableSet. |
Set |
getDeclarables()
|
Expression |
getInstruction()
Get the contained instruction. |
void |
makeDeclaration(Set done)
Make the declarations, i.e. |
void |
removeOnetimeLocals()
This method should remove local variables that are only written and read one time directly after another. |
void |
setInstruction(Expression instr)
Set the contained instruction. |
void |
simplify()
|
Methods inherited from class net.sf.jode.flow.StructuredBlock |
---|
appendBlock, checkConsistent, contains, copyJump, dumpInstruction, dumpSource, flowMayBeChanged, getBCELInstructions, getBytecodeInstructions, getNextBlock, getNextBlock, getNextFlowBlock, getNextFlowBlock, getSubBlocks, isEmpty, isSingleExit, jumpMayBeChanged, mapStackToLocal, moveJump, needsBraces, prependBlock, propagateUsage, removeBlock, removeJump, removePush, 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 InstructionContainer(Expression instr)
public InstructionContainer(Instruction bytecodeInstr, Expression instr)
Method Detail |
---|
public void makeDeclaration(Set done)
makeDeclaration
in class StructuredBlock
done
- The set of the already declare variables.public void removeOnetimeLocals()
removeOnetimeLocals
in class StructuredBlock
public void fillInGenSet(Set in, Set gen)
fillInGenSet
in class StructuredBlock
in
- The VariableSet, the in variables should be stored to.public Set getDeclarables()
getDeclarables
in class StructuredBlock
public boolean doTransformations()
StructuredBlock
doTransformations
in class StructuredBlock
public final Expression getInstruction()
public void simplify()
simplify
in class StructuredBlock
public final void setInstruction(Expression instr)
instr
- the new instruction.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |