public class AnalysisRun
extends java.lang.Object
Constructor | Description |
---|---|
AnalysisRun(Project project,
FindBugsFrame frame) |
Creates a new instance of AnalysisRun.
|
Modifier and Type | Method | Description |
---|---|---|
void |
execute(FindBugsProgress progressCallback) |
Run the analysis.
|
java.util.Collection<BugInstance> |
getBugInstances() |
Return the collection of BugInstances.
|
FindBugsFrame |
getFrame() |
Get the FindBugsFrame which created this analysis run.
|
java.lang.String |
getSummary() |
|
javax.swing.tree.DefaultTreeModel |
getTreeModel(java.lang.String groupByOrder) |
Get the tree model to be used in the BugTree.
|
void |
loadBugsFromFile(java.io.File file) |
Load bugs from a file.
|
void |
loadBugsFromInputStream(java.io.InputStream in) |
Load bugs from an InputStream.
|
void |
reportAnalysisErrors() |
Report any errors that may have occurred during analysis.
|
void |
saveBugsToFile(java.io.File file) |
Save bugs to a file.
|
void |
setTreeModel(java.lang.String groupByOrder,
javax.swing.tree.DefaultTreeModel treeModel) |
Set the tree model to be used in the BugTree.
|
public AnalysisRun(Project project, FindBugsFrame frame)
public FindBugsFrame getFrame()
public void execute(FindBugsProgress progressCallback) throws java.io.IOException, java.lang.InterruptedException
progressCallback
- the progress callbackjava.io.IOException
- if an I/O error occurs during the analysisjava.lang.InterruptedException
- if the analysis thread is interruptedpublic void loadBugsFromFile(java.io.File file) throws java.io.IOException, org.dom4j.DocumentException
java.io.IOException
org.dom4j.DocumentException
public void loadBugsFromInputStream(java.io.InputStream in) throws java.io.IOException, org.dom4j.DocumentException
in
- the InputStreamjava.io.IOException
org.dom4j.DocumentException
public void saveBugsToFile(java.io.File file) throws java.io.IOException
java.io.IOException
public void reportAnalysisErrors()
public java.util.Collection<BugInstance> getBugInstances()
public void setTreeModel(java.lang.String groupByOrder, javax.swing.tree.DefaultTreeModel treeModel)
groupByOrder
- the grouping order that the tree model will conform totreeModel
- the tree modelpublic javax.swing.tree.DefaultTreeModel getTreeModel(java.lang.String groupByOrder)
groupByOrder
- the grouping order that the tree model conforms topublic java.lang.String getSummary()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.