|
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.CatchBlock
Constructor Summary | |
CatchBlock(Type type)
|
Method Summary | |
boolean |
combineLocal()
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. |
java.util.Set |
getDeclarables()
|
Type |
getExceptionType()
|
LocalInfo |
getLocal()
|
StructuredBlock[] |
getSubBlocks()
Returns all sub block of this structured block. |
boolean |
jumpMayBeChanged()
Determines if there is a sub block, that flows through to the end of this block. |
void |
makeDeclaration(java.util.Set done)
Make the declarations, i.e. initialize the declare variable to correct values. |
VariableStack |
mapStackToLocal(VariableStack stack)
A catch block pushes the exception on the stack, iff a local doesn't exists. |
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 |
setCatchBlock(StructuredBlock catchBlock)
Sets the catch block. |
Methods inherited from class net.sf.jode.flow.StructuredBlock |
appendBlock, checkConsistent, contains, copyJump, doTransformations, dumpSource, fillInGenSet, flowMayBeChanged, getNextBlock, getNextBlock, getNextFlowBlock, getNextFlowBlock, isEmpty, isSingleExit, moveJump, needsBraces, prependBlock, propagateUsage, removeBlock, removeJump, removeOnetimeLocals, replace, setFlowBlock, setJump, setSuccessors, simplify, swapJump, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CatchBlock(Type type)
Method Detail |
public Type getExceptionType()
public LocalInfo getLocal()
public void setCatchBlock(StructuredBlock catchBlock)
catchBlock
- the catch block.public boolean replaceSubBlock(StructuredBlock oldBlock, StructuredBlock newBlock)
replaceSubBlock
in class StructuredBlock
oldBlock
- the old sub block.newBlock
- the new sub block.
public StructuredBlock[] getSubBlocks()
getSubBlocks
in class StructuredBlock
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 java.util.Set getDeclarables()
getDeclarables
in class StructuredBlock
public void makeDeclaration(java.util.Set done)
makeDeclaration
in class StructuredBlock
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
public boolean jumpMayBeChanged()
jumpMayBeChanged
in class StructuredBlock
public boolean combineLocal()
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |