jbet
Class InstrEnum

java.lang.Object
  extended by jbet.InstrEnum
All Implemented Interfaces:
java.util.Enumeration

public class InstrEnum
extends java.lang.Object
implements java.util.Enumeration

Implements an Java enumeration interface (with extensions peek() and nextInstr()) for a linked list of JBET Instructions (part of a Snippit). $Id: InstrEnum.java,v 1.4 2003/09/09 17:31:54 areisse Exp $

See Also:
Snippit.instrs

Field Summary
 Instruction ptr
           
 
Constructor Summary
InstrEnum(Instruction i)
           
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 Instruction nextInstr()
           
 Instruction peek()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ptr

public Instruction ptr
Constructor Detail

InstrEnum

public InstrEnum(Instruction i)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

peek

public Instruction peek()

nextInstr

public Instruction nextInstr()

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration