|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Basic Block for Control Flow Graph. Refers to chain of Tuples. All basic blocks of a given method are linked into list
| Method Summary | |
IControlFlowGraph |
getCFG()
get control flow graph, the basic block is part of |
AstObject |
getFirstAST()
get first nontrivial AST object belonging to the basic block Ignore Label Tuples. |
ITuple |
getFirstTuple()
Get first tuple in the basic block. |
ITuple |
getLastTuple()
Get last tuple in the basic block. |
IBasicBlock |
getNext()
Access next block in list of all basic blocks for a method returns null if the current block is last (END) basic block |
IBasicBlock[] |
getPredecessors()
Get array of predecessors of the basic block. |
IBasicBlock[] |
getSuccessors()
Get array of successors of the basic block. |
boolean |
isReachable()
is the basic block reachable |
void |
setAsReachable()
sets the basic block to be known as reachable. |
| Method Detail |
public IControlFlowGraph getCFG()
public AstObject getFirstAST()
null if no AST is
available in this basic block and all of it's successors.public ITuple getFirstTuple()
null if
basic block is emptypublic ITuple getLastTuple()
null if
basic block is emptypublic IBasicBlock getNext()
public IBasicBlock[] getPredecessors()
null
if there is no known predecesors for this basic blockpublic IBasicBlock[] getSuccessors()
null
if there is no known succesors for this basic blockpublic boolean isReachable()
public void setAsReachable()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||