Debug
, RepositoryLookupFailureCallback
, BugReporter
, IClassObserver
, IErrorLogger
HTMLBugReporter
, XMLBugReporter
public class BugCollectionBugReporter extends TextUIBugReporter implements Debug
AbstractBugReporter.Error
NORMAL, SILENT
VERIFY_INTEGRITY
outputStream
Constructor | Description |
---|---|
BugCollectionBugReporter(Project project) |
|
BugCollectionBugReporter(Project project,
java.io.PrintWriter writer) |
Modifier and Type | Method | Description |
---|---|---|
void |
doReportBug(BugInstance bugInstance) |
Subclasses must override this.
|
protected void |
emitLine(java.lang.String line) |
Emit one line of the error message report.
|
void |
finish() |
Finish reporting bugs.
|
BugCollection |
getBugCollection() |
Get the bug collection (if any) associated with this bug reporter
|
Project |
getProject() |
|
BugReporter |
getRealBugReporter() |
|
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.
|
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityThreshold, setRankThreshold
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkBugInstance, getUseLongBugCodes, isApplySuppressions, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setShowRank, setUseLongBugCodes, setWriter
public BugCollectionBugReporter(Project project)
public BugCollectionBugReporter(Project project, @CheckForNull java.io.PrintWriter writer)
public Project getProject()
@Nonnull public BugCollection getBugCollection()
BugReporter
getBugCollection
in interface BugReporter
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()
getRealBugReporter
in class TextUIBugReporter
public void finish()
BugReporter
finish
in interface BugReporter
protected void emitLine(java.lang.String line)
emitLine
in class TextUIBugReporter
line
- one line of the error reportSpotBugs is licensed under the LGPL.