edu.umd.cs.findbugs
Class CountBugs
java.lang.Object
edu.umd.cs.findbugs.CountBugs
public class CountBugs
- extends java.lang.Object
Count bugs in a result file by category.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
kingdomToAbbrevMap
private static final java.util.HashMap<java.lang.String,java.lang.String> kingdomToAbbrevMap
priorityToAbbrevMap
private static final java.util.HashMap<java.lang.Integer,java.lang.String> priorityToAbbrevMap
bugCollection
private SortedBugCollection bugCollection
project
private Project project
keyFactory
private CountBugs.KeyFactory keyFactory
keySet
private java.util.Set<CountBugs.Key> keySet
countMap
private java.util.TreeMap<CountBugs.Key,java.lang.Integer> countMap
minPriority
private int minPriority
CountBugs
public CountBugs(java.lang.String resultsFileName)
throws java.io.IOException,
org.dom4j.DocumentException
- Throws:
java.io.IOException
org.dom4j.DocumentException
CountBugs
public CountBugs(SortedBugCollection bugCollection,
Project project)
getBugCollection
public SortedBugCollection getBugCollection()
getProject
public Project getProject()
addKey
public void addKey(CountBugs.Key key)
setKeyFactory
public void setKeyFactory(java.lang.String keyMode)
setKeys
public void setKeys(java.lang.String keyList)
getCount
public java.lang.Integer getCount(CountBugs.Key key)
getTotal
public int getTotal()
execute
public void execute()
diffCounts
public void diffCounts(CountBugs newer)
printCounts
public void printCounts(java.io.OutputStream out,
boolean deltas)
usage
private static void usage()
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Throws:
java.lang.Exception