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

ClassVector.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) collection of JavaClass
00008  * objects. Contains the most important methods of a Vector.
00009  *
00010  * @version $Id: ClassVector.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 ClassVector {
00015   protected Vector vec = new Vector();
00016   
00017   public void      addElement(JavaClass clazz) { vec.addElement(clazz); }  
00018   public JavaClass elementAt(int index)        { return (JavaClass)vec.elementAt(index); }  
00019   public void      removeElementAt(int index)  { vec.removeElementAt(index); }  
00020   public JavaClass[] toArray() {
00021     JavaClass[] classes = new JavaClass[vec.size()];
00022     vec.copyInto(classes);
00023     return classes;
00024   }  
00025 }

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