RepositoryLookupFailureCallback
, BugReporter
, IClassObserver
, IErrorLogger
BugCollectionBugReporter
, EmacsBugReporter
, PrintingBugReporter
, SortingBugReporter
, SwingGUIBugReporter
, XDocsBugReporter
public abstract class TextUIBugReporter extends AbstractBugReporter
"TextUIBugReporter" is a bit of a misnomer, since this class is useful in GUIs, too.
AbstractBugReporter.Error
Modifier and Type | Field | Description |
---|---|---|
protected java.io.PrintStream |
outputStream |
NORMAL, SILENT
Constructor | Description |
---|---|
TextUIBugReporter() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
checkBugInstance(BugInstance bugInstance) |
For debugging: check a BugInstance to make sure it
is valid.
|
protected void |
emitLine(java.lang.String line) |
Emit one line of the error message report.
|
BugReporter |
getRealBugReporter() |
Get the real bug reporter at the end of a chain of delegating bug reporters.
|
boolean |
getUseLongBugCodes() |
|
boolean |
isApplySuppressions() |
|
protected void |
printBug(BugInstance bugInstance) |
Print bug in one-line format.
|
void |
reportAnalysisError(AnalysisError error) |
Report a queued error.
|
void |
reportMissingClass(java.lang.String message) |
Report a missing class.
|
void |
reportQueuedErrors() |
Report any accumulated error messages.
|
void |
setApplySuppressions(boolean applySuppressions) |
|
void |
setOutputStream(java.io.PrintStream outputStream) |
Set the PrintStream to write bug output to.
|
void |
setReportHistory(boolean reportHistory) |
|
void |
setReportStackTrace(boolean reportStackTrace) |
Set whether or not stack traces should be reported in error output.
|
void |
setReportUserDesignations(boolean reportUserDesignations) |
|
void |
setShowRank(boolean showRank) |
|
void |
setUseLongBugCodes(boolean useLongBugCodes) |
addObserver, doReportBug, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isValidMissingClassMessage, logError, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setPriorityThreshold, setRankThreshold
finish
observeClass
public void setOutputStream(@WillClose java.io.PrintStream outputStream)
outputStream
- the PrintStream to write bug output topublic void setReportStackTrace(boolean reportStackTrace)
reportStackTrace
- true if stack traces should be reported, false if notprotected void printBug(BugInstance bugInstance)
bugInstance
- the bug to printpublic void reportQueuedErrors()
BugReporter
reportQueuedErrors
in interface BugReporter
reportQueuedErrors
in class AbstractBugReporter
public void reportAnalysisError(AnalysisError error)
AbstractBugReporter
reportAnalysisError
in class AbstractBugReporter
error
- the queued errorpublic void reportMissingClass(java.lang.String message)
AbstractBugReporter
reportMissingClass
in class AbstractBugReporter
message
- the name of the classprotected void emitLine(java.lang.String line)
line
- one line of the error reportpublic boolean getUseLongBugCodes()
public void setReportHistory(boolean reportHistory)
public void setUseLongBugCodes(boolean useLongBugCodes)
public void setShowRank(boolean showRank)
public void setApplySuppressions(boolean applySuppressions)
public void setReportUserDesignations(boolean reportUserDesignations)
public BugReporter getRealBugReporter()
BugReporter
protected void checkBugInstance(BugInstance bugInstance)
bugInstance
- the BugInstance to checkpublic boolean isApplySuppressions()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.