org.jikesrvm.compilers.opt.instrsched
Class Priority

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

abstract class Priority
extends Object
implements InstructionEnumeration

Instruction priority representation 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 next()
          Returns the next instruction in sequence
 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 final Instruction nextElement()
Returns the next instruction in sequence

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

next

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

Specified by:
next in interface InstructionEnumeration
Returns:
the next instruction in sequence