edu.umd.cs.findbugs.gui
Class AnalysisRun.Reporter

java.lang.Object
  extended by edu.umd.cs.findbugs.AbstractBugReporter
      extended by edu.umd.cs.findbugs.gui.AnalysisRun.Reporter
All Implemented Interfaces:
ClassObserver, RepositoryLookupFailureCallback, BugReporter
Enclosing class:
AnalysisRun

private class AnalysisRun.Reporter
extends AbstractBugReporter

Our BugReporter just puts the reported BugInstances into a SortedBugCollection.


Field Summary
private  SortedBugCollection bugCollection
           
 
Fields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT
 
Constructor Summary
private AnalysisRun.Reporter()
           
 
Method Summary
 void beginReport()
           
 void doReportBug(BugInstance bugInstance)
          Subclasses must override this.
 void endReport()
           
 void finish()
          Finish reporting bugs.
 void logError(java.lang.String message)
          Log an error that occurs while looking for bugs.
 void observeClass(org.apache.bcel.classfile.JavaClass javaClass)
          Observe a class.
 void reportLine(java.lang.String msg)
           
 void reportMissingClass(java.lang.ClassNotFoundException ex)
          Called to report a lookup failure.
 
Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter
addObserver, getEngine, getMissingClassName, getProjectStats, notifyObservers, reportBug, reportQueuedErrors, setEngine, setErrorVerbosity, setPriorityThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bugCollection

private SortedBugCollection bugCollection
Constructor Detail

AnalysisRun.Reporter

private AnalysisRun.Reporter()
Method Detail

observeClass

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

Parameters:
javaClass - the class

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

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 AbstractBugReporter
Parameters:
message - the error message

finish

public void finish()
Description copied from interface: BugReporter
Finish reporting bugs. If any bug reports have been queued, calling this method will flush them.


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

beginReport

public void beginReport()
Specified by:
beginReport in class AbstractBugReporter

reportLine

public void reportLine(java.lang.String msg)
Specified by:
reportLine in class AbstractBugReporter

endReport

public void endReport()
Specified by:
endReport in class AbstractBugReporter