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

ClassStack.java

00001 package de.fub.bytecode.util;
00002 
00003 import java.util.Stack;
00004 import de.fub.bytecode.classfile.JavaClass;
00005 
00006 /** 
00007  * Utility class implementing a (typesafe) stack of JavaClass objects.
00008  *
00009  * @version $Id: ClassStack.java,v 1.1.1.1 2002/01/24 03:44:02 pserver Exp $
00010  * @author <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A> 
00011  * @see Stack
00012 */
00013 public class ClassStack {
00014   private Stack stack = new Stack();
00015 
00016   public boolean   empty()               { return stack.empty(); }  
00017   public JavaClass pop()                 { return (JavaClass)stack.pop(); }  
00018   public void      push(JavaClass clazz) { stack.push(clazz); }  
00019   public JavaClass top()                 { return (JavaClass)stack.peek(); }  
00020 }

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