edu.umd.cs.findbugs
Class Project.WorkList

java.lang.Object
  extended by edu.umd.cs.findbugs.Project.WorkList
Enclosing class:
Project

private static class Project.WorkList
extends java.lang.Object

Worklist for finding implicit classpath entries.


Field Summary
private  java.util.HashSet<java.lang.String> addedSet
           
private  java.util.LinkedList<Project.WorkListItem> itemList
           
 
Constructor Summary
Project.WorkList()
          Constructor.
 
Method Summary
 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

itemList

private java.util.LinkedList<Project.WorkListItem> itemList

addedSet

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

Project.WorkList

public Project.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.


getNextItem

public Project.WorkListItem getNextItem()
Get the next item in the worklist.