|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.gui.AnalysisRun
public class AnalysisRun
Representation of a run of the FindBugs analysis on a Project. This class has convenient methods which can be used to extract bug reports in various interesting ways.
Constructor Summary | |
---|---|
AnalysisRun(Project project,
FindBugsFrame frame)
Creates a new instance of AnalysisRun. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnalysisRun(Project project, FindBugsFrame frame)
Method Detail |
---|
public FindBugsFrame getFrame()
public void execute(FindBugsProgress progressCallback) throws java.io.IOException, java.lang.InterruptedException
progressCallback
- the progress callback
java.io.IOException
- if an I/O error occurs during the analysis
java.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 InputStream
java.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 to
public java.lang.String getSummary()
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |