Class ClassQueue


  • public class ClassQueue
    extends java.lang.Object
    Utility class implementing a (typesafe) queue of JavaClass objects.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.LinkedList<JavaClass> vec
      Deprecated.
      (since 6.0) will be made private; do not access
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassQueue()
      Constructs a new ClassQueue.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JavaClass dequeue()
      Removes and returns the first JavaClass from the queue.
      boolean empty()
      Checks if the queue is empty.
      void enqueue​(JavaClass clazz)
      Adds a JavaClass to the end of the queue.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • vec

        @Deprecated
        protected java.util.LinkedList<JavaClass> vec
        Deprecated.
        (since 6.0) will be made private; do not access
    • Constructor Detail

      • ClassQueue

        public ClassQueue()
        Constructs a new ClassQueue.
    • 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:
        toString in class java.lang.Object