org.jikesrvm.compilers.opt.ir
Class EmptyBasicBlockEnumeration

java.lang.Object
  extended by org.jikesrvm.compilers.opt.ir.EmptyBasicBlockEnumeration
All Implemented Interfaces:
Enumeration<BasicBlock>, BasicBlockEnumeration

 class EmptyBasicBlockEnumeration
extends Object
implements BasicBlockEnumeration

This class is used only for the pre-allocated empty enumeration in BasicBlockEnumeration. It cannot be an anonymous class in BasicBlockEnumeration because BasicBlockEnumeration is an interface, and when javadoc sees the anonymous class, it converts it into a private member of the interface. It then complains that interfaces cannot have private members. This is truly retarded, even by Java's low standards.


Field Summary
 
Fields inherited from interface org.jikesrvm.compilers.opt.ir.BasicBlockEnumeration
Empty
 
Constructor Summary
EmptyBasicBlockEnumeration()
           
 
Method Summary
 boolean hasMoreElements()
           
 BasicBlock next()
          Same as nextElement but avoid the need to downcast from Object.
 BasicBlock nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyBasicBlockEnumeration

EmptyBasicBlockEnumeration()
Method Detail

hasMoreElements

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

nextElement

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

next

public BasicBlock next()
Description copied from interface: BasicBlockEnumeration
Same as nextElement but avoid the need to downcast from Object.

Specified by:
next in interface BasicBlockEnumeration