org.jikesrvm.compilers.opt.liveness
Class LiveSetEnumerator

java.lang.Object
  extended by org.jikesrvm.compilers.opt.liveness.LiveSetEnumerator
All Implemented Interfaces:
Enumeration<RegisterOperand>

public class LiveSetEnumerator
extends Object
implements Enumeration<RegisterOperand>

An enumeration over live set lists


Field Summary
private  LiveSetElement current
          the current element on this list
 
Constructor Summary
LiveSetEnumerator(LiveSetElement list)
          The constructor
 
Method Summary
 boolean hasMoreElements()
          Are there any more elements?
 RegisterOperand nextElement()
          Returns the next element, if one exists, otherwise throws an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

private LiveSetElement current
the current element on this list

Constructor Detail

LiveSetEnumerator

public LiveSetEnumerator(LiveSetElement list)
The constructor

Parameters:
list - The LiveSetElement at the head of the list.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Are there any more elements?

Specified by:
hasMoreElements in interface Enumeration<RegisterOperand>
Returns:
whether there are any more elements?

nextElement

public RegisterOperand nextElement()
Returns the next element, if one exists, otherwise throws an exception.

Specified by:
nextElement in interface Enumeration<RegisterOperand>
Returns:
the next element
Throws:
NoSuchElementException - if no next element exists