|
|||||||||
| 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
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 StructuredBlockdone - The set of the already declare variables.public void removeOnetimeLocals()
removeOnetimeLocals in class StructuredBlock
public void fillInGenSet(Set in,
Set gen)
fillInGenSet in class StructuredBlockin - The VariableSet, the in variables should be stored to.public Set getDeclarables()
getDeclarables in class StructuredBlockpublic boolean doTransformations()
StructuredBlock
doTransformations in class StructuredBlockpublic final Expression getInstruction()
public void simplify()
simplify in class StructuredBlockpublic 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 | ||||||||