public class BugCollectionBugReporter extends TextUIBugReporter implements Debug
AbstractBugReporter.Error
outputStream
VERIFY_INTEGRITY
NORMAL, SILENT
Constructor and Description |
---|
BugCollectionBugReporter(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
doReportBug(BugInstance bugInstance)
Subclasses must override this.
|
void |
finish()
Finish reporting bugs.
|
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(ClassDescriptor classDescriptor)
Observe a class being visited.
|
void |
reportMissingClass(java.lang.ClassNotFoundException ex)
Called to report a class lookup failure.
|
checkBugInstance, emitLine, getUseLongBugCodes, isApplySuppressions, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setReportUserDesignations, setShowRank, setUseLongBugCodes
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isValidMissingClassMessage, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setPriorityThreshold, setRankThreshold
public BugCollectionBugReporter(Project project)
public Project getProject()
public BugCollection getBugCollection()
public void observeClass(ClassDescriptor classDescriptor)
IClassObserver
observeClass
in interface IClassObserver
classDescriptor
- class being visitedpublic void logError(java.lang.String message)
IErrorLogger
logError
in interface IErrorLogger
logError
in class AbstractBugReporter
message
- the error messagepublic void logError(java.lang.String message, java.lang.Throwable e)
IErrorLogger
logError
in interface IErrorLogger
logError
in class AbstractBugReporter
message
- the error messagee
- the exception which is the underlying cause of the errorpublic void reportMissingClass(java.lang.ClassNotFoundException ex)
IErrorLogger
reportMissingClass
in interface IErrorLogger
reportMissingClass
in class AbstractBugReporter
ex
- a ClassNotFoundException resulting from the class lookup failurepublic void doReportBug(BugInstance bugInstance)
AbstractBugReporter
doReportBug
in class AbstractBugReporter
bugInstance
- the bug to reportpublic BugReporter getRealBugReporter()
BugReporter
getRealBugReporter
in interface BugReporter
getRealBugReporter
in class TextUIBugReporter
public void finish()
BugReporter
finish
in interface BugReporter
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.