edu.umd.cs.findbugs
public abstract class TextUIBugReporter extends AbstractBugReporter
"TextUIBugReporter" is a bit of a misnomer, since this class is useful in GUIs, too.
| Field Summary | |
|---|---|
| protected PrintStream | outputStream |
| Constructor Summary | |
|---|---|
| TextUIBugReporter() | |
| Method Summary | |
|---|---|
| protected void | checkBugInstance(BugInstance bugInstance)
For debugging: check a BugInstance to make sure it
is valid.
|
| protected void | emitLine(String line)
Emit one line of the error message report.
|
| BugReporter | getRealBugReporter() |
| boolean | getUseLongBugCodes() |
| protected void | printBug(BugInstance bugInstance)
Print bug in one-line format.
|
| void | setOutputStream(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 | setUseLongBugCodes(boolean useLongBugCodes) |
Parameters: bugInstance the BugInstance to check
Parameters: line one line of the error report
Parameters: bugInstance the bug to print
Parameters: outputStream the PrintStream to write bug output to
Parameters: reportStackTrace true if stack traces should be reported, false if not