coins.ir.hir
インタフェース HirIterator

既知の実装クラスの一覧:
HirIteratorImpl

public interface HirIterator

HirIterator interface Traverse HIR node in depth first order.


メソッドの概要
 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.
 

メソッドの詳細

next

public HIR next()
next Get the next node and advance current point for iteration. If the next node is IrList or HirList or ExpListExp, the elements of the list are traversed.


hasNext

public boolean hasNext()

getNextExecutableNode

public HIR getNextExecutableNode()
next Get the node that refer/set data or change control flow directly. If the next node is IrList or HirList, the elements of the list are traversed.


nextStmt

public Stmt nextStmt()
nextStmt Get the next statement skipping other nodes that are not Stmt. In compound statements, statements contained in the compound statements are get in depth-first order.

戻り値:
the next statement.

hasNextStmt

public boolean hasNextStmt()

getNextStmt

public Stmt getNextStmt()