Package org.apache.bcel.util
Class ClassStack
java.lang.Object
org.apache.bcel.util.ClassStack
Utility class implementing a (typesafe) stack of JavaClass objects.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ClassStack
public ClassStack()Constructs a new ClassStack.
-
-
Method Details
-
empty
Checks if the stack is empty.- Returns:
- true if the stack is empty.
-
pop
Pops a JavaClass from the stack.- Returns:
- The JavaClass from the top of the stack.
-
push
Pushes a JavaClass onto the stack.- Parameters:
clazz- The JavaClass to push.
-
top
Gets the top JavaClass from the stack without removing it.- Returns:
- The JavaClass at the top of the stack.
-