Package org.apache.bcel.util
Class ClassQueue
- java.lang.Object
-
- org.apache.bcel.util.ClassQueue
-
public class ClassQueue extends java.lang.ObjectUtility class implementing a (typesafe) queue of JavaClass objects.
-
-
Constructor Summary
Constructors Constructor Description ClassQueue()Constructs a new ClassQueue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaClassdequeue()Removes and returns the first JavaClass from the queue.booleanempty()Checks if the queue is empty.voidenqueue(JavaClass clazz)Adds a JavaClass to the end of the queue.java.lang.StringtoString()
-
-
-
Field Detail
-
vec
@Deprecated protected java.util.LinkedList<JavaClass> vec
Deprecated.(since 6.0) will be made private; do not access
-
-
Method Detail
-
dequeue
public JavaClass dequeue()
Removes and returns the first JavaClass from the queue.- Returns:
- the first JavaClass from the queue.
-
empty
public boolean empty()
Checks if the queue is empty.- Returns:
- true if the queue is empty.
-
enqueue
public void enqueue(JavaClass clazz)
Adds a JavaClass to the end of the queue.- Parameters:
clazz- the JavaClass to add.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-