Class Project.WorkList

  • Enclosing class:
    Project

    private static class Project.WorkList
    extends java.lang.Object
    Worklist for finding implicit classpath entries.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.HashSet<java.lang.String> addedSet  
      private java.util.LinkedList<Project.WorkListItem> itemList  
      private static org.slf4j.Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkList()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(Project.WorkListItem item)
      Add a worklist item.
      java.net.URL createRelativeURL​(java.net.URL base, java.lang.String fileName)
      Create a URL of a file relative to another URL.
      java.net.URL createURL​(java.lang.String fileName)
      Create a URL from a filename specified in the project file.
      Project.WorkListItem getNextItem()
      Get the next item in the worklist.
      boolean isEmpty()
      Return whether or not the worklist is empty.
      • Methods inherited from class java.lang.Object

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

      • LOG

        private static final org.slf4j.Logger LOG
      • addedSet

        private final java.util.HashSet<java.lang.String> addedSet
    • Constructor Detail

      • WorkList

        public WorkList()
        Constructor. Creates an empty worklist.
    • Method Detail

      • createURL

        public java.net.URL createURL​(java.lang.String fileName)
                               throws java.net.MalformedURLException
        Create a URL from a filename specified in the project file.
        Throws:
        java.net.MalformedURLException
      • createRelativeURL

        public java.net.URL createRelativeURL​(java.net.URL base,
                                              java.lang.String fileName)
                                       throws java.net.MalformedURLException
        Create a URL of a file relative to another URL.
        Throws:
        java.net.MalformedURLException
      • add

        public boolean add​(Project.WorkListItem item)
        Add a worklist item.
        Parameters:
        item - the WorkListItem representing a zip/jar file to be examined
        Returns:
        true if the item was added, false if not (because it was examined already)
      • isEmpty

        public boolean isEmpty()
        Return whether or not the worklist is empty.