|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.umd.cs.findbugs.BugCollection
edu.umd.cs.findbugs.SortedBugCollection
public class SortedBugCollection
An implementation of BugCollection that keeps the BugInstances
sorted by class (using the native comparison ordering of BugInstance's
compareTo() method as a tie-breaker).
BugInstance| Nested Class Summary | |
|---|---|
private static class |
SortedBugCollection.BugInstanceComparator
|
| Field Summary | |
|---|---|
private java.util.TreeSet<BugInstance> |
bugSet
|
private static SortedBugCollection.BugInstanceComparator |
comparator
|
private java.util.List<java.lang.String> |
errorList
|
private java.util.TreeSet<java.lang.String> |
missingClassSet
|
private java.lang.String |
summaryHTML
|
| Fields inherited from class edu.umd.cs.findbugs.BugCollection |
|---|
ANALYSIS_ERROR_ELEMENT_NAME, APP_CLASS_ELEMENT_NAME, ERRORS_ELEMENT_NAME, MISSING_CLASS_ELEMENT_NAME, PROJECT_ELEMENT_NAME, ROOT_ELEMENT_NAME, SRCMAP_ELEMENT_NAME, SUMMARY_HTML_ELEMENT_NAME |
| Constructor Summary | |
|---|---|
SortedBugCollection()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(BugInstance bugInstance)
Add a BugInstance to this BugCollection. |
void |
addError(java.lang.String message)
Add an analysis error message. |
void |
addMissingClass(java.lang.String message)
Add a missing class message. |
boolean |
contains(BugInstance bugInstance)
|
java.util.Iterator<java.lang.String> |
errorIterator()
Return an Iterator over error messages. |
java.util.Collection<BugInstance> |
getCollection()
Return the Collection storing the BugInstance objects. |
BugInstance |
getMatching(BugInstance bugInstance)
|
java.lang.String |
getSummaryHTML()
Get the summary HTML text. |
java.util.Iterator<BugInstance> |
iterator()
Return an Iterator over all the BugInstance objects in the BugCollection. |
java.util.Iterator<java.lang.String> |
missingClassIterator()
Return an Iterator over missing class messages. |
boolean |
remove(BugInstance bugInstance)
Remove a BugInstance from this BugCollection. |
void |
setSummaryHTML(java.lang.String html)
Set the summary HTML text. |
| Methods inherited from class edu.umd.cs.findbugs.BugCollection |
|---|
addAll, readXML, readXML, readXML, toDocument, writeXML, writeXML, writeXML, writeXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final SortedBugCollection.BugInstanceComparator comparator
private java.util.TreeSet<BugInstance> bugSet
private java.util.List<java.lang.String> errorList
private java.util.TreeSet<java.lang.String> missingClassSet
private java.lang.String summaryHTML
| Constructor Detail |
|---|
public SortedBugCollection()
| Method Detail |
|---|
public boolean add(BugInstance bugInstance)
BugCollection
add in class BugCollectionbugInstance - the BugInstance
public boolean remove(BugInstance bugInstance)
BugCollection
remove in class BugCollectionbugInstance - the BugInstance
public java.util.Iterator<BugInstance> iterator()
BugCollection
iterator in class BugCollectionpublic java.util.Collection<BugInstance> getCollection()
BugCollection
getCollection in class BugCollectionpublic void addError(java.lang.String message)
BugCollection
addError in class BugCollectionmessage - the error messagepublic void addMissingClass(java.lang.String message)
BugCollection
addMissingClass in class BugCollectionmessage - the missing class messagepublic java.util.Iterator<java.lang.String> errorIterator()
BugCollection
errorIterator in class BugCollectionpublic java.util.Iterator<java.lang.String> missingClassIterator()
BugCollection
missingClassIterator in class BugCollectionpublic boolean contains(BugInstance bugInstance)
public BugInstance getMatching(BugInstance bugInstance)
public void setSummaryHTML(java.lang.String html)
BugCollection
setSummaryHTML in class BugCollectionpublic java.lang.String getSummaryHTML()
BugCollection
getSummaryHTML in class BugCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||