org.jikesrvm.compilers.opt.instrsched
Class Priority

java.lang.Object
  extended by org.jikesrvm.compilers.opt.instrsched.Priority
All Implemented Interfaces:
Enumeration<Instruction>
Direct Known Subclasses:
DefaultPriority

abstract class Priority
extends Object
implements Enumeration<Instruction>

Represents instruction priority. Used by the scheduler to enumerate over instructions.

See Also:
Scheduler

Constructor Summary
Priority()
           
 
Method Summary
abstract  boolean hasMoreElements()
          Returns true if there are more instructions, false otherwise
abstract  Instruction nextElement()
          Returns the next instruction in sequence
abstract  void reset()
          Resets the enumeration to the first instruction in sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Priority

Priority()
Method Detail

reset

public abstract void reset()
Resets the enumeration to the first instruction in sequence


hasMoreElements

public abstract boolean hasMoreElements()
Returns true if there are more instructions, false otherwise

Specified by:
hasMoreElements in interface Enumeration<Instruction>
Returns:
true if there are more instructions, false otherwise

nextElement

public abstract Instruction nextElement()
Returns the next instruction in sequence

Specified by:
nextElement in interface Enumeration<Instruction>
Returns:
the next instruction in sequence