edu.umd.cs.findbugs
Class FindBugs.ErrorCountingBugReporter

java.lang.Object
  extended by edu.umd.cs.findbugs.DelegatingBugReporter
      extended by edu.umd.cs.findbugs.FindBugs.ErrorCountingBugReporter
All Implemented Interfaces:
ClassObserver, RepositoryLookupFailureCallback, BugReporter
Enclosing class:
FindBugs

private static class FindBugs.ErrorCountingBugReporter
extends DelegatingBugReporter

A delegating bug reporter which counts reported bug instances, missing classes, and serious analysis errors.


Field Summary
private  int bugCount
           
private  int errorCount
           
private  int missingClassCount
           
private  java.util.Set<java.lang.String> missingClassSet
           
 
Fields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT
 
Constructor Summary
FindBugs.ErrorCountingBugReporter(BugReporter realBugReporter)
           
 
Method Summary
 int getBugCount()
           
 int getErrorCount()
           
 int getMissingClassCount()
           
 void logError(java.lang.String message)
          Log an error that occurs while looking for bugs.
 void reportMissingClass(java.lang.ClassNotFoundException ex)
          Called to report a lookup failure.
 
Methods inherited from class edu.umd.cs.findbugs.DelegatingBugReporter
addObserver, finish, getProjectStats, getRealBugReporter, observeClass, reportBug, reportQueuedErrors, setEngine, setErrorVerbosity, setPriorityThreshold, setRealBugReporter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bugCount

private int bugCount

missingClassCount

private int missingClassCount

errorCount

private int errorCount

missingClassSet

private java.util.Set<java.lang.String> missingClassSet
Constructor Detail

FindBugs.ErrorCountingBugReporter

public FindBugs.ErrorCountingBugReporter(BugReporter realBugReporter)
Method Detail

getBugCount

public int getBugCount()

getMissingClassCount

public int getMissingClassCount()

getErrorCount

public int getErrorCount()

logError

public void logError(java.lang.String message)
Description copied from interface: BugReporter
Log an error that occurs while looking for bugs.

Specified by:
logError in interface BugReporter
Overrides:
logError in class DelegatingBugReporter
Parameters:
message - the error message

reportMissingClass

public void reportMissingClass(java.lang.ClassNotFoundException ex)
Description copied from interface: RepositoryLookupFailureCallback
Called to report a lookup failure.

Specified by:
reportMissingClass in interface RepositoryLookupFailureCallback
Overrides:
reportMissingClass in class DelegatingBugReporter
Parameters:
ex - a ClassNotFoundException resulting from the failure