public class XDocsBugReporter extends TextUIBugReporter
AbstractBugReporter.Error
outputStream
NORMAL, SILENT
Constructor and Description |
---|
XDocsBugReporter(Project project) |
Modifier and Type | Method and 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) |
checkBugInstance, emitLine, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setReportUserDesignations, setShowRank, setUseLongBugCodes, setWriter
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityThreshold, setRankThreshold
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
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.