org.jikesrvm.compilers.opt
Class DefUse.RegOpListWalker

java.lang.Object
  extended by org.jikesrvm.compilers.opt.DefUse.RegOpListWalker
All Implemented Interfaces:
Enumeration<RegisterOperand>, RegisterOperandEnumeration
Enclosing class:
DefUse

private static final class DefUse.RegOpListWalker
extends Object
implements RegisterOperandEnumeration

Utility class to encapsulate walking a use/def list.


Field Summary
private  RegisterOperand current
           
 
Constructor Summary
DefUse.RegOpListWalker(RegisterOperand start)
           
 
Method Summary
 boolean hasMoreElements()
           
 RegisterOperand next()
          Same as nextElement but avoid the need to downcast from Object
 RegisterOperand nextElement()
           
private static void raiseNoSuchElementException()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

private RegisterOperand current
Constructor Detail

DefUse.RegOpListWalker

DefUse.RegOpListWalker(RegisterOperand start)
Method Detail

hasMoreElements

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

nextElement

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

next

public RegisterOperand next()
Description copied from interface: RegisterOperandEnumeration
Same as nextElement but avoid the need to downcast from Object

Specified by:
next in interface RegisterOperandEnumeration

raiseNoSuchElementException

private static void raiseNoSuchElementException()