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.ObjectWorklist for finding implicit classpath entries.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashSet<java.lang.String>addedSetprivate java.util.LinkedList<Project.WorkListItem>itemListprivate static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description WorkList()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Project.WorkListItem item)Add a worklist item.java.net.URLcreateRelativeURL(java.net.URL base, java.lang.String fileName)Create a URL of a file relative to another URL.java.net.URLcreateURL(java.lang.String fileName)Create a URL from a filename specified in the project file.Project.WorkListItemgetNextItem()Get the next item in the worklist.booleanisEmpty()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.MalformedURLExceptionCreate 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.MalformedURLExceptionCreate 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.
-
-