coins.aflow
Class BBlockStmtIterator

java.lang.Object
  extended bycoins.aflow.BBlockStmtIterator
All Implemented Interfaces:
BBlockSubtreeIterator

public class BBlockStmtIterator
extends java.lang.Object
implements BBlockSubtreeIterator

Unreliable


Field Summary
(package private) static Stmt EOB
           
 
Constructor Summary
BBlockStmtIterator(BBlockHir pBBlock)
           
 
Method Summary
 boolean hasNext()
          hasNext:
 IR next()
          next: Get the next top subtree in the basic block indicated by this iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOB

static final Stmt EOB
Constructor Detail

BBlockStmtIterator

public BBlockStmtIterator(BBlockHir pBBlock)
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: BBlockSubtreeIterator
hasNext:

Specified by:
hasNext in interface BBlockSubtreeIterator
Returns:
true if there remains thte next top subtree in the basic block.

next

public IR next()
Description copied from interface: BBlockSubtreeIterator
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

Specified by:
next in interface BBlockSubtreeIterator