Package edu.umd.cs.findbugs
Class Project.WorkList
- java.lang.Object
-
- 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
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.
-
-
-
Field Detail
-
LOG
private static final org.slf4j.Logger LOG
-
itemList
private final java.util.LinkedList<Project.WorkListItem> itemList
-
addedSet
private final java.util.HashSet<java.lang.String> addedSet
-
-
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.
-
-