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 and Description |
---|---|
protected java.io.PrintWriter |
outputStream |
NORMAL, SILENT
Constructor and Description |
---|
TextUIBugReporter() |
Modifier and Type | Method and 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() |
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) |
void |
setWriter(java.io.PrintWriter writer) |
addObserver, doReportBug, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, logError, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityThreshold, setRankThreshold
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getBugCollection
observeClass
public void setOutputStream(java.io.PrintStream outputStream)
outputStream
- the PrintStream to write bug output topublic void setWriter(java.io.PrintWriter writer)
public 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()
protected void checkBugInstance(BugInstance bugInstance)
bugInstance
- the BugInstance to checkpublic boolean isApplySuppressions()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.