org.jikesrvm.compilers.opt.ir
Class BasicBlock.ComputedBBEnum

java.lang.Object
  extended by org.jikesrvm.compilers.opt.ir.BasicBlock.ComputedBBEnum
All Implemented Interfaces:
Enumeration<BasicBlock>
Enclosing class:
BasicBlock

static final class BasicBlock.ComputedBBEnum
extends Object
implements Enumeration<BasicBlock>


Field Summary
private  BasicBlock[] blocks
           
private  int current
           
private  int numBlocks
           
 
Constructor Summary
BasicBlock.ComputedBBEnum(int maxBlocks)
           
 
Method Summary
(package private)  void addElement(BasicBlock b)
           
(package private)  void addPossiblyDuplicateElement(BasicBlock b)
           
(package private) static void fail()
           
 boolean hasMoreElements()
           
 BasicBlock nextElement()
           
 int totalCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blocks

private BasicBlock[] blocks

numBlocks

private int numBlocks

current

private int current
Constructor Detail

BasicBlock.ComputedBBEnum

BasicBlock.ComputedBBEnum(int maxBlocks)
Method Detail

addElement

void addElement(BasicBlock b)

addPossiblyDuplicateElement

void addPossiblyDuplicateElement(BasicBlock b)

totalCount

public int totalCount()

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<BasicBlock>

nextElement

public BasicBlock nextElement()
Specified by:
nextElement in interface Enumeration<BasicBlock>

fail

static void fail()
          throws NoSuchElementException
Throws:
NoSuchElementException