|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ir.hir.HirIteratorImpl
HirIteratorImpl class Traverse HIR node in depth first order.
| Field Summary | |
protected int |
fDbgLevel
|
protected int |
fDebLevel
|
protected int |
fNodeCount
|
protected java.util.ArrayList |
fNodeList
|
protected java.util.Iterator |
fNodeListIterator
|
protected int |
fStmtCount
|
protected java.util.ArrayList |
fStmtList
|
protected java.util.Iterator |
fStmtListIterator
|
HirRoot |
hirRoot
|
IoRoot |
ioRoot
|
| Constructor Summary | |
HirIteratorImpl(HirRoot pHirRoot,
IR pSubtree,
boolean pGoUpward)
HirIteratorImpl Create an itrerator that traverses nodes of HIR subtree. |
|
| Method Summary | |
HIR |
getNextExecutableNode()
next Get the node that refer/set data or change control flow directly. |
Stmt |
getNextStmt()
|
boolean |
hasNext()
|
boolean |
hasNextStmt()
|
HIR |
next()
next Get the next node and advance current point for iteration. |
Stmt |
nextStmt()
nextStmt Get the next statement skipping other nodes that are not Stmt. |
protected void |
recordNodes(HIR pHir)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final HirRoot hirRoot
public final IoRoot ioRoot
protected int fDbgLevel
protected java.util.ArrayList fNodeList
protected java.util.ArrayList fStmtList
protected int fNodeCount
protected int fStmtCount
protected java.util.Iterator fNodeListIterator
protected java.util.Iterator fStmtListIterator
protected int fDebLevel
| Constructor Detail |
public HirIteratorImpl(HirRoot pHirRoot,
IR pSubtree,
boolean pGoUpward)
pSubtree - Subtree to be traversed.pGoUpward - true if traverse of nodes positioned
higher than the root of pSubtree is permitted.
Normally this is false; true is used in BBlockNodeIterator.| Method Detail |
public HIR next()
HirIterator
next in interface HirIteratorpublic boolean hasNext()
hasNext in interface HirIteratorpublic boolean hasNextStmt()
hasNextStmt in interface HirIteratorpublic HIR getNextExecutableNode()
HirIterator
getNextExecutableNode in interface HirIteratorpublic Stmt nextStmt()
HirIterator
nextStmt in interface HirIteratorpublic Stmt getNextStmt()
getNextStmt in interface HirIteratorprotected void recordNodes(HIR pHir)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||