|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.mdf.TreatNode
This class treats some statements specially in MDF module.
| Field Summary | |
protected MdfEnvironment |
env
|
protected MacroFlowGraph |
mfg
|
protected Stmt |
root
|
protected SymTable |
symTab
|
protected java.util.LinkedList |
visited
|
| Constructor Summary | |
protected |
TreatNode(MdfEnvironment e,
MacroFlowGraph g,
java.util.LinkedList list,
Stmt rootStmt)
Constructor: |
| Method Summary | |
protected boolean |
isChange(MacroTask mt,
Label label)
Get whether the specified macro task has the specified label. |
protected BlockStmt |
makeJumpBlk(Label label)
Make a new block structure which include a new JUMP statement. |
protected void |
replaceReturn(Label label,
DeclareLocalVariables decLocal)
Replace the return statement into the jump statement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected MdfEnvironment env
protected SymTable symTab
protected MacroFlowGraph mfg
protected java.util.LinkedList visited
protected Stmt root
| Constructor Detail |
protected TreatNode(MdfEnvironment e,
MacroFlowGraph g,
java.util.LinkedList list,
Stmt rootStmt)
e - The environment of the MDF moduleg - The current macro flow graphlist - The list of the labels which the MDF module is already treatedrootStmt - The statement which treat by this class| Method Detail |
protected void replaceReturn(Label label,
DeclareLocalVariables decLocal)
label - The label of the final return statementdecLocal - The declaration of the local variablesprotected BlockStmt makeJumpBlk(Label label)
label - The target label
protected boolean isChange(MacroTask mt,
Label label)
mt - The target macro tasklabel - The target label
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||