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