public class DelegatingBugReporter extends java.lang.Object implements BugReporter
NORMAL, SILENT| Constructor and Description |
|---|
DelegatingBugReporter(BugReporter delegate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(BugReporterObserver observer)
Add an observer.
|
void |
finish()
Finish reporting bugs.
|
BugCollection |
getBugCollection()
Get the bug collection (if any) associated with this bug reporter
|
protected BugReporter |
getDelegate() |
ProjectStats |
getProjectStats()
Get ProjectStats object used to store statistics about the overall
project being analyzed.
|
void |
logError(java.lang.String message)
Log an error that occurs while performing analysis.
|
void |
logError(java.lang.String message,
java.lang.Throwable e)
Log an error that occurs while performing analysis.
|
void |
observeClass(ClassDescriptor classDescriptor)
Observe a class being visited.
|
void |
reportBug(BugInstance bugInstance)
Report a bug.
|
void |
reportMissingClass(ClassDescriptor classDescriptor)
Called to report a class lookup failure.
|
void |
reportMissingClass(java.lang.ClassNotFoundException ex)
Called to report a class lookup failure.
|
void |
reportQueuedErrors()
Report any accumulated error messages.
|
void |
reportSkippedAnalysis(MethodDescriptor method)
Report that we skipped some analysis of a method
|
void |
setErrorVerbosity(int level)
Set the error-reporting verbosity level.
|
void |
setPriorityThreshold(int threshold)
Set the priority threshold.
|
public DelegatingBugReporter(BugReporter delegate)
delegate - another BugReporter to delegate all BugReporter methods toprotected BugReporter getDelegate()
public void setErrorVerbosity(int level)
BugReportersetErrorVerbosity in interface BugReporterlevel - the verbosity levelpublic void setPriorityThreshold(int threshold)
BugReportersetPriorityThreshold in interface BugReporterthreshold - bug instances must be at least as important as this priority
to be reportedpublic void observeClass(ClassDescriptor classDescriptor)
IClassObserverobserveClass in interface IClassObserverclassDescriptor - class being visitedpublic void reportBug(@Nonnull
BugInstance bugInstance)
BugReporterreportBug in interface BugReporterbugInstance - object describing the bug instancepublic void logError(java.lang.String message)
IErrorLoggerlogError in interface IErrorLoggermessage - the error messagepublic void reportMissingClass(java.lang.ClassNotFoundException ex)
IErrorLoggerreportMissingClass in interface IErrorLoggerex - a ClassNotFoundException resulting from the class lookup
failurepublic void reportMissingClass(ClassDescriptor classDescriptor)
IErrorLoggerreportMissingClass in interface IErrorLoggerclassDescriptor - ClassDescriptor of a missing classpublic void finish()
BugReporterfinish in interface BugReporterpublic void reportQueuedErrors()
BugReporterreportQueuedErrors in interface BugReporterpublic void addObserver(BugReporterObserver observer)
BugReporteraddObserver in interface BugReporterobserver - the observerpublic ProjectStats getProjectStats()
BugReportergetProjectStats in interface BugReporterpublic void logError(java.lang.String message,
java.lang.Throwable e)
IErrorLoggerlogError in interface IErrorLoggermessage - the error messagee - the exception which is the underlying cause of the errorpublic void reportSkippedAnalysis(MethodDescriptor method)
reportSkippedAnalysis in interface IErrorLoggermethod - @CheckForNull public BugCollection getBugCollection()
BugReportergetBugCollection in interface BugReporterFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.