org.jikesrvm.compilers.opt.ir
Class EmptyBasicBlockEnumeration
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyBasicBlockEnumeration
EmptyBasicBlockEnumeration()
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