public class LiveSetEnumerator extends Object implements Enumeration<RegisterOperand>
| Modifier and Type | Field and Description |
|---|---|
private LiveSetElement |
current
the current element on this list
|
| Constructor and Description |
|---|
LiveSetEnumerator(LiveSetElement list)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
Are there any more elements?
|
RegisterOperand |
nextElement()
Returns the next element, if one exists, otherwise throws an exception.
|
private LiveSetElement current
public LiveSetEnumerator(LiveSetElement list)
list - The LiveSetElement at the head of the list.public boolean hasMoreElements()
hasMoreElements in interface Enumeration<RegisterOperand>public RegisterOperand nextElement()
nextElement in interface Enumeration<RegisterOperand>NoSuchElementException - if no next element exists