edu.umd.cs.findbugs
public class SortedBugCollection extends Object implements BugCollection
See Also: BugInstance
| Nested Class Summary | |
|---|---|
| static class | SortedBugCollection.BugInstanceComparator |
| static class | SortedBugCollection.MultiversionBugInstanceComparator |
| Constructor Summary | |
|---|---|
| SortedBugCollection()
Constructor.
| |
| SortedBugCollection(Comparator<BugInstance> comparator)
Constructor.
| |
| SortedBugCollection(ProjectStats projectStats)
Constructor.
| |
| SortedBugCollection(ProjectStats projectStats, Comparator<BugInstance> comparator)
Constructor.
| |
| Method Summary | |
|---|---|
| boolean | add(BugInstance bugInstance)
Add a BugInstance to this BugCollection.
|
| boolean | add(BugInstance bugInstance, boolean updateActiveTime) |
| void | addAll(Collection<BugInstance> collection)
Add a Collection of BugInstances to this BugCollection object.
|
| void | addAll(Collection<BugInstance> collection, boolean updateActiveTime)
Add a Collection of BugInstances to this BugCollection object.
|
| void | addAppVersion(AppVersion appVersion) |
| void | addError(String message)
Add an analysis error.
|
| void | addError(String message, Throwable exception) |
| void | addError(AnalysisError error) |
| void | addMissingClass(String className) |
| Iterator<AppVersion> | appVersionIterator() |
| Iterator<ClassFeatureSet> | classFeatureSetIterator() |
| void | clearAppVersions() |
| void | clearBugInstances() |
| void | clearClassFeatures() |
| static void | cloneAll(Collection<BugInstance> dest, Collection<BugInstance> source)
Clone all of the BugInstance objects in the source Collection
and add them to the destination Collection.
|
| void | computeBugHashes() |
| boolean | contains(BugInstance bugInstance) |
| SortedBugCollection | createEmptyCollectionWithMetadata() |
| SortedBugCollection | duplicate() |
| Iterator<AnalysisError> | errorIterator() |
| BugInstance | findBug(String instanceHash, String bugType, int lineNumber) |
| long | getAnalysisTimestamp() |
| AppVersion | getAppVersionFromSequenceNumber(long target) |
| ClassFeatureSet | getClassFeatureSet(String className) |
| Collection<BugInstance> | getCollection() |
| AppVersion | getCurrentAppVersion()
Get the current AppVersion. |
| BugInstance | getMatching(BugInstance bugInstance) |
| ProjectStats | getProjectStats() |
| String | getReleaseName() |
| long | getSequenceNumber() |
| String | getSummaryHTML() |
| long | getTimestamp() |
| boolean | getWithMessages() |
| Iterator<BugInstance> | iterator() |
| Iterator<String> | missingClassIterator() |
| void | readXML(String fileName, Project project)
Read XML data from given file into this object,
populating given Project as a side effect.
|
| void | readXML(File file, Project project)
Read XML data from given file into this object,
populating given Project as a side effect.
|
| void | readXML(InputStream in, Project project, File base)
Read XML data from given input stream into this
object, populating the Project as a side effect.
|
| void | readXML(InputStream in, Project project) |
| boolean | remove(BugInstance bugInstance) |
| void | setAnalysisTimestamp(long timestamp) |
| void | setAnalysisVersion(String version) |
| void | setClassFeatureSet(ClassFeatureSet classFeatureSet) |
| void | setReleaseName(String releaseName) |
| void | setSequenceNumber(long sequence) |
| void | setTimestamp(long timestamp) |
| void | setWithMessages(boolean withMessages) |
| Document | toDocument(Project project)
Convert the BugCollection into a dom4j Document object.
|
| void | writeEpilogue(XMLOutput xmlOutput) |
| void | writePrologue(XMLOutput xmlOutput, Project project) |
| void | writeXML(String fileName, Project project)
Write this BugCollection to a file as XML.
|
| void | writeXML(File file, Project project)
Write this BugCollection to a file as XML.
|
| void | writeXML(OutputStream out, Project project)
Write the BugCollection to given output stream as XML.
|
| void | writeXML(XMLOutput xmlOutput, Project project)
Write the BugCollection to an XMLOutput object.
|
Parameters: projectStats the ProjectStats
Parameters: projectStats the ProjectStats comparator to use for sorting bug instances
Parameters: bugInstance the BugInstance
Returns: true if the BugInstance was added, or false if a matching BugInstance was already in the BugCollection
Parameters: collection the Collection of BugInstances to add
Parameters: collection the Collection of BugInstances to add updateActiveTime true if active time of added BugInstances should be updated to match collection: false if not
Parameters: message the error message
Parameters: dest the destination Collection source the source Collection
Returns: Returns the withMessages.
Parameters: fileName name of the file to read project the Project
Parameters: file the file project the Project
Parameters: in the InputStream project the Project
Parameters: version
Parameters: withMessages The withMessages to set.
Parameters: project the Project from which the BugCollection was generated
Returns: the Document representing the BugCollection as a dom4j tree
Parameters: fileName the file to write to project the Project from which the BugCollection was generated
Parameters: file the file to write to project the Project from which the BugCollection was generated
Parameters: out the OutputStream to write to project the Project from which the BugCollection was generated
To write the SummaryHTML element, set property findbugs.report.SummaryHTML to "true".
Parameters: xmlOutput the XMLOutput object project the Project from which the BugCollection was generated