edu.umd.cs.findbugs
Class PrintingBugReporter
java.lang.Object
edu.umd.cs.findbugs.AbstractBugReporter
edu.umd.cs.findbugs.TextUIBugReporter
edu.umd.cs.findbugs.PrintingBugReporter
- All Implemented Interfaces:
- RepositoryLookupFailureCallback, BugReporter, IClassObserver, IErrorLogger
public class PrintingBugReporter
- extends TextUIBugReporter
A simple BugReporter which simply prints the formatted message
to the output stream.
Method Summary |
protected void |
doReportBug(BugInstance bugInstance)
Subclasses must override this. |
void |
finish()
Finish reporting bugs. |
static void |
main(java.lang.String[] args)
|
void |
observeClass(ClassDescriptor classDescriptor)
Observe a class being visited. |
static void |
xslt(java.lang.String stylesheet,
boolean applySuppression,
java.lang.String[] args,
int argCount)
|
Methods inherited from class edu.umd.cs.findbugs.TextUIBugReporter |
checkBugInstance, emitLine, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setReportUserDesignations, setShowRank, setUseLongBugCodes |
Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter |
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isValidMissingClassMessage, logError, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setPriorityThreshold, setRankThreshold |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintingBugReporter
public PrintingBugReporter()
observeClass
public void observeClass(ClassDescriptor classDescriptor)
- Description copied from interface:
IClassObserver
- Observe a class being visited.
- Parameters:
classDescriptor
- class being visited
doReportBug
protected void doReportBug(BugInstance bugInstance)
- Description copied from class:
AbstractBugReporter
- Subclasses must override this.
It will be called only for bugs which meet the priority threshold.
- Specified by:
doReportBug
in class AbstractBugReporter
- Parameters:
bugInstance
- the bug to report
finish
public void finish()
- Description copied from interface:
BugReporter
- Finish reporting bugs.
If any bug reports have been queued, calling this method
will flush them.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
xslt
public static void xslt(java.lang.String stylesheet,
boolean applySuppression,
java.lang.String[] args,
int argCount)
throws java.lang.Exception
- Throws:
java.lang.Exception
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.