org.jikesrvm.compilers.opt.liveness
Class LiveIntervalEnumeration

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

public class LiveIntervalEnumeration
extends Object
implements Enumeration<LiveIntervalElement>

Enumerator for a list of live intervals stored on a basic block.

Note: This is fragile. Use with care iff you know what you're doing.

TODO: redesign the way live info is stored on the IR to be a bit more robust. e.g., don't use scratch fields.


Field Summary
private  LiveIntervalElement currentElement
           
 
Constructor Summary
LiveIntervalEnumeration(LiveIntervalElement first)
           
 
Method Summary
 boolean hasMoreElements()
           
 LiveIntervalElement nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentElement

private LiveIntervalElement currentElement
Constructor Detail

LiveIntervalEnumeration

public LiveIntervalEnumeration(LiveIntervalElement first)
Parameters:
first - The first live interval in a list to be enumerated
Method Detail

hasMoreElements

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

nextElement

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