RepositoryLookupFailureCallback
, BugReporter
, IClassObserver
, IErrorLogger
public class XDocsBugReporter extends TextUIBugReporter
AbstractBugReporter.Error
NORMAL, SILENT
outputStream
Constructor | Description |
---|---|
XDocsBugReporter(Project project) |
Modifier and Type | Method | Description |
---|---|---|
void |
doReportBug(BugInstance bugInstance) |
Subclasses must override this.
|
void |
finish() |
Finish reporting bugs.
|
BugCollection |
getBugCollection() |
Get the bug collection (if any) associated with this bug reporter
|
void |
logError(java.lang.String message) |
Log an error that occurs while performing analysis.
|
void |
observeClass(ClassDescriptor classDescriptor) |
Observe a class being visited.
|
protected void |
printBug(BugInstance bugInstance) |
Print bug in one-line format.
|
void |
reportMissingClass(java.lang.ClassNotFoundException ex) |
Called to report a class lookup failure.
|
void |
toElement(BugInstance bugInstance) |
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityThreshold, setRankThreshold
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkBugInstance, emitLine, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setShowRank, setUseLongBugCodes, setWriter
public XDocsBugReporter(Project project)
public void observeClass(ClassDescriptor classDescriptor)
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 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 reportprotected void printBug(BugInstance bugInstance)
TextUIBugReporter
printBug
in class TextUIBugReporter
bugInstance
- the bug to printpublic void finish()
BugReporter
public void toElement(BugInstance bugInstance)
@Nonnull public BugCollection getBugCollection()
BugReporter
SpotBugs is licensed under the LGPL.