coins.aflow
Interface BBlockSubtreeIterator

All Known Implementing Classes:
BBlockStmtIterator

public interface BBlockSubtreeIterator

BBlockSubtreeIterator interface // (##6) Basic block subtree iterator to traverse top-subtree in a basic block.


Method Summary
 boolean hasNext()
          hasNext:
 IR next()
          next: Get the next top subtree in the basic block indicated by this iterator.
 

Method Detail

next

public IR next()
next: Get the next top subtree in the basic block indicated by this iterator. If no one is left, return null. The end of top subtree iteration should be checked not by null of next() but by hasNext() because there might be a case where the last top subtree is null (in such case as there remains a sequence of nodes but no top subtree is remaining). //##7


hasNext

public boolean hasNext()
hasNext:

Returns:
true if there remains thte next top subtree in the basic block.