|
FindBugs™ 1.3.8 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BugCollection
| Field Summary | |
|---|---|
static java.lang.String |
ANALYSIS_ERROR_ELEMENT_NAME
|
static java.lang.String |
APP_CLASS_ELEMENT_NAME
|
static java.lang.String |
CLASS_HASHES_ELEMENT_NAME
|
static java.lang.String |
ERROR_ELEMENT_NAME
|
static java.lang.String |
ERROR_EXCEPTION_ELEMENT_NAME
|
static java.lang.String |
ERROR_MESSAGE_ELEMENT_NAME
|
static java.lang.String |
ERROR_STACK_TRACE_ELEMENT_NAME
|
static java.lang.String |
ERRORS_ELEMENT_NAME
|
static java.lang.String |
HISTORY_ELEMENT_NAME
|
static java.lang.String |
MISSING_CLASS_ELEMENT_NAME
|
static java.lang.String |
PROJECT_ELEMENT_NAME
|
static java.lang.String |
ROOT_ELEMENT_NAME
|
static java.lang.String |
SRCMAP_ELEMENT_NAME
|
static java.lang.String |
SUMMARY_HTML_ELEMENT_NAME
|
| Method Summary | |
|---|---|
boolean |
add(BugInstance bugInstance)
Add a BugInstance to this BugCollection. |
boolean |
add(BugInstance bugInstance,
boolean updateActiveTime)
Add a BugInstance to this BugCollection. |
void |
addAppVersion(AppVersion appVersion)
Add an AppVersion representing a version of the analyzed application. |
void |
addError(AnalysisError error)
Add an analysis error. |
void |
addError(java.lang.String message)
Add an analysis error. |
void |
addMissingClass(java.lang.String message)
Add a missing class message. |
java.util.Iterator<AppVersion> |
appVersionIterator()
Get an Iterator over AppVersions defined in the collection. |
void |
clearAppVersions()
Clear all AppVersions representing previously-analyzed versions of the application. |
void |
clearClassFeatures()
|
BugCollection |
createEmptyCollectionWithMetadata()
Create a new empty BugCollection with the same metadata as this one. |
BugInstance |
findBug(java.lang.String instanceHash,
java.lang.String bugType,
int lineNumber)
|
long |
getAnalysisTimestamp()
Get the timestamp for when the analysis was performed. |
AppVersion |
getAppVersionFromSequenceNumber(long target)
Gets the AppVersion corresponding to the given sequence number. |
java.util.Collection<BugInstance> |
getCollection()
Return the Collection storing the BugInstance objects. |
AppVersion |
getCurrentAppVersion()
Get the current AppVersion. |
ProjectStats |
getProjectStats()
Get the project stats. |
java.lang.String |
getReleaseName()
Get the current release name. |
long |
getSequenceNumber()
Get the sequence number of the BugCollection. |
long |
getTimestamp()
Get the timestamp for the analyzed code (when it was compiled) |
UserAnnotationPlugin |
getUserAnnotationPlugin()
|
boolean |
getWithMessages()
Return whether textual messages will be added to any generated XML |
boolean |
isApplySuppressions()
|
java.util.Iterator<BugInstance> |
iterator()
Return an Iterator over all the BugInstance objects in the BugCollection. |
BugInstance |
lookupFromUniqueId(java.lang.String uniqueId)
Deprecated. |
void |
readXML(java.io.InputStream in,
Project project)
Read XML data from given input stream into this object, populating the Project as a side effect. |
void |
readXML(java.lang.String fileName,
Project project)
Read XML data from given file into this object, populating given Project as a side effect. |
void |
setAnalysisTimestamp(long timestamp)
Set the timestamp for when the analysis was performed. |
void |
setAnalysisVersion(java.lang.String analysisVersion)
Set the version of FindBugs used to perform the analysis |
void |
setApplySuppressions(boolean applySuppressions)
|
void |
setClassFeatureSet(ClassFeatureSet classFeatureSet)
|
void |
setReleaseName(java.lang.String releaseName)
Set the current release name. |
void |
setSequenceNumber(long sequence)
Set the sequence number of the BugCollection. |
void |
setTimestamp(long timestamp)
Get the timestamp for the analyzed code (when it was compiled) |
void |
setWithMessages(boolean withMessages)
Set whether textual messages should be added to any generated XML |
org.dom4j.Document |
toDocument(Project project)
Convert the BugCollection into a dom4j Document object. |
void |
writeEpilogue(XMLOutput xmlOutput)
|
void |
writePrologue(XMLOutput xmlOutput,
Project project)
|
void |
writeXML(java.io.OutputStream out,
Project project)
Write the BugCollection to given output stream as XML. |
void |
writeXML(java.lang.String fileName,
Project project)
Write this BugCollection to a file as XML. |
void |
writeXML(XMLOutput xmlOutput,
Project project)
Write the BugCollection to an XMLOutput object. |
| Field Detail |
|---|
static final java.lang.String ROOT_ELEMENT_NAME
static final java.lang.String SRCMAP_ELEMENT_NAME
static final java.lang.String PROJECT_ELEMENT_NAME
static final java.lang.String ERRORS_ELEMENT_NAME
static final java.lang.String ANALYSIS_ERROR_ELEMENT_NAME
static final java.lang.String ERROR_ELEMENT_NAME
static final java.lang.String ERROR_MESSAGE_ELEMENT_NAME
static final java.lang.String ERROR_EXCEPTION_ELEMENT_NAME
static final java.lang.String ERROR_STACK_TRACE_ELEMENT_NAME
static final java.lang.String MISSING_CLASS_ELEMENT_NAME
static final java.lang.String SUMMARY_HTML_ELEMENT_NAME
static final java.lang.String APP_CLASS_ELEMENT_NAME
static final java.lang.String CLASS_HASHES_ELEMENT_NAME
static final java.lang.String HISTORY_ELEMENT_NAME
| Method Detail |
|---|
void setReleaseName(java.lang.String releaseName)
releaseName - the current release namejava.lang.String getReleaseName()
ProjectStats getProjectStats()
void setTimestamp(long timestamp)
timestamp - the timestamp.long getTimestamp()
void setAnalysisTimestamp(long timestamp)
timestamp - the analysis timestamp.void setAnalysisVersion(java.lang.String analysisVersion)
analysisVersion - the analysis version.long getAnalysisTimestamp()
AppVersion getAppVersionFromSequenceNumber(long target)
void setSequenceNumber(long sequence)
sequence - the sequence numbergetSequenceNumber()long getSequenceNumber()
void clearAppVersions()
void addAppVersion(AppVersion appVersion)
appVersion - the AppVersionAppVersion getCurrentAppVersion()
java.util.Iterator<AppVersion> appVersionIterator()
boolean add(BugInstance bugInstance)
bugInstance - the BugInstance
boolean add(BugInstance bugInstance,
boolean updateActiveTime)
bugInstance - the BugInstanceupdateActiveTime - true if the warning's active time should be updated
to include the collection's current time
@Deprecated BugInstance lookupFromUniqueId(java.lang.String uniqueId)
uniqueId - the BugInstance's unique id.
void addError(java.lang.String message)
message - the error messagevoid addError(AnalysisError error)
error - the AnalysisError object to addvoid addMissingClass(java.lang.String message)
message - the missing class messagevoid setClassFeatureSet(ClassFeatureSet classFeatureSet)
void writePrologue(XMLOutput xmlOutput,
Project project)
throws java.io.IOException
java.io.IOException
void writeEpilogue(XMLOutput xmlOutput)
throws java.io.IOException
java.io.IOExceptionvoid clearClassFeatures()
void readXML(java.lang.String fileName,
Project project)
throws java.io.IOException,
org.dom4j.DocumentException
fileName - name of the file to readproject - the Project
java.io.IOException
org.dom4j.DocumentException
void readXML(@WillClose
java.io.InputStream in,
Project project)
throws java.io.IOException,
org.dom4j.DocumentException
in - the InputStreamproject - the Project
java.io.IOException
org.dom4j.DocumentException
void writeXML(java.lang.String fileName,
Project project)
throws java.io.IOException
fileName - the file to write toproject - the Project from which the BugCollection was generated
java.io.IOException
void writeXML(@WillClose
java.io.OutputStream out,
Project project)
throws java.io.IOException
out - the OutputStream to write toproject - the Project from which the BugCollection was generated
java.io.IOException
void writeXML(@WillClose
XMLOutput xmlOutput,
Project project)
throws java.io.IOException
To write the SummaryHTML element, set property findbugs.report.SummaryHTML to "true".
xmlOutput - the XMLOutput objectproject - the Project from which the BugCollection was generated
java.io.IOExceptionjava.util.Iterator<BugInstance> iterator()
iterator in interface java.lang.Iterable<BugInstance>java.util.Collection<BugInstance> getCollection()
org.dom4j.Document toDocument(Project project)
project - the Project from which the BugCollection was generated
BugCollection createEmptyCollectionWithMetadata()
void setWithMessages(boolean withMessages)
boolean getWithMessages()
BugInstance findBug(java.lang.String instanceHash,
java.lang.String bugType,
int lineNumber)
boolean isApplySuppressions()
void setApplySuppressions(boolean applySuppressions)
UserAnnotationPlugin getUserAnnotationPlugin()
|
FindBugs™ 1.3.8 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||