edu.umd.cs.findbugs
Class BugCollectionBugReporter

java.lang.Object
  extended by edu.umd.cs.findbugs.AbstractBugReporter
      extended by edu.umd.cs.findbugs.TextUIBugReporter
          extended by edu.umd.cs.findbugs.BugCollectionBugReporter
All Implemented Interfaces:
ClassObserver, Debug, RepositoryLookupFailureCallback, BugReporter
Direct Known Subclasses:
HTMLBugReporter, XMLBugReporter

public abstract class BugCollectionBugReporter
extends TextUIBugReporter
implements Debug


Field Summary
 
Fields inherited from class edu.umd.cs.findbugs.TextUIBugReporter
outputStream
 
Fields inherited from interface edu.umd.cs.findbugs.ba.Debug
CHECK_ASSERTIONS, VERIFY_INTEGRITY
 
Fields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT
 
Constructor Summary
BugCollectionBugReporter(Project project)
           
 
Method Summary
 void doReportBug(BugInstance bugInstance)
          Subclasses must override this.
 BugCollection getBugCollection()
           
 Project getProject()
           
 BugReporter getRealBugReporter()
          Get the real bug reporter at the end of a chain of delegating bug reporters.
 void logError(java.lang.String message)
          Log an error that occurs while performing analysis.
 void logError(java.lang.String message, java.lang.Throwable e)
          Log an error that occurs while performing analysis.
 void observeClass(org.apache.bcel.classfile.JavaClass javaClass)
          Observe a class.
 void reportMissingClass(java.lang.ClassNotFoundException ex)
          Called to report a lookup failure.
 
Methods inherited from class edu.umd.cs.findbugs.TextUIBugReporter
checkBugInstance, emitLine, getUseLongBugCodes, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setOutputStream, setReportStackTrace, setUseLongBugCodes
 
Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter
addObserver, getEngine, getMissingClassName, getProjectStats, notifyObservers, reportBug, reportSkippedAnalysis, setEngine, setErrorVerbosity, setPriorityThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.umd.cs.findbugs.BugReporter
finish
 

Constructor Detail

BugCollectionBugReporter

public BugCollectionBugReporter(Project project)
Method Detail

getProject

public Project getProject()

getBugCollection

public BugCollection getBugCollection()

observeClass

public void observeClass(org.apache.bcel.classfile.JavaClass javaClass)
Description copied from interface: ClassObserver
Observe a class.

Specified by:
observeClass in interface ClassObserver
Parameters:
javaClass - the class

logError

public void logError(java.lang.String message)
Description copied from interface: RepositoryLookupFailureCallback
Log an error that occurs while performing analysis.

Specified by:
logError in interface RepositoryLookupFailureCallback
Overrides:
logError in class AbstractBugReporter
Parameters:
message - the error message

logError

public void logError(java.lang.String message,
                     java.lang.Throwable e)
Description copied from interface: RepositoryLookupFailureCallback
Log an error that occurs while performing analysis.

Specified by:
logError in interface RepositoryLookupFailureCallback
Overrides:
logError in class AbstractBugReporter
Parameters:
message - the error message
e - the exception which is the underlying cause of the error

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 AbstractBugReporter
Parameters:
ex - a ClassNotFoundException resulting from the failure

doReportBug

public void doReportBug(BugInstance bugInstance)
Description copied from class: AbstractBugReporter
Subclasses must override this. It will be called only for bugs which meet the priority threshold.

Specified by:
doReportBug in class AbstractBugReporter

getRealBugReporter

public BugReporter getRealBugReporter()
Description copied from interface: BugReporter
Get the real bug reporter at the end of a chain of delegating bug reporters. All non-delegating bug reporters should simply "return this".

Specified by:
getRealBugReporter in interface BugReporter
Overrides:
getRealBugReporter in class TextUIBugReporter
Returns:
the real bug reporter at the end of the chain, or this object if there is no delegation