00001 package de.fub.bytecode.util;
00002
00003 import java.util.Stack;
00004 import de.fub.bytecode.classfile.JavaClass;
00005
00006
00007
00008
00009
00010
00011
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 }