Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ClassQueue.java

00001 package de.fub.bytecode.util;
00002 
00003 import java.util.Vector;
00004 import de.fub.bytecode.classfile.JavaClass;
00005 
00006 /** 
00007  * Utility class implementing a (typesafe) queue of JavaClass
00008  * objects.
00009  *
00010  * @version $Id: ClassQueue.java,v 1.1.1.1 2002/01/24 03:41:42 pserver Exp $
00011  * @author <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A> 
00012  * @see Vector
00013 */
00014 public class ClassQueue {
00015   protected int    left = 0;
00016   private   Vector vec  = new Vector();
00017 
00018   public JavaClass dequeue()                { return (JavaClass)vec.elementAt(left++); }  
00019   public boolean   empty()                  { return vec.size() <= left; }  
00020   public void      enqueue(JavaClass clazz) { vec.addElement(clazz); }  
00021 }

Generated at Thu Feb 7 06:42:29 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001