RepositoryLookupFailureCallback
, BugReporter
, IClassObserver
, IErrorLogger
CategoryFilteringBugReporter
, ErrorCountingBugReporter
, ExcludingHashesBugReporter
, FilterBugReporter
public class DelegatingBugReporter extends java.lang.Object implements BugReporter
NORMAL, SILENT
Constructor | Description |
---|---|
DelegatingBugReporter(BugReporter delegate) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addObserver(BugReporterObserver observer) |
Add an observer.
|
void |
finish() |
Finish reporting bugs.
|
BugReporter |
getDelegate() |
|
ProjectStats |
getProjectStats() |
Get ProjectStats object used to store statistics about
the overall project being analyzed.
|
BugReporter |
getRealBugReporter() |
Get the real bug reporter at the end of a chain of delegating bug reporters.
|
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 |
setDelegate(BugReporter delegate) |
Set BugReporter to delegate reported BugInstances to.
|
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 topublic BugReporter getRealBugReporter()
BugReporter
getRealBugReporter
in interface BugReporter
public void setDelegate(BugReporter delegate)
delegate
- BugReporter to delegate all BugReporter methods topublic BugReporter getDelegate()
public void setErrorVerbosity(int level)
BugReporter
setErrorVerbosity
in interface BugReporter
level
- the verbosity levelpublic void setPriorityThreshold(int threshold)
BugReporter
setPriorityThreshold
in interface BugReporter
threshold
- bug instances must be at least as important as
this priority to be reportedpublic void observeClass(ClassDescriptor classDescriptor)
IClassObserver
observeClass
in interface IClassObserver
classDescriptor
- class being visitedpublic void reportBug(BugInstance bugInstance)
BugReporter
reportBug
in interface BugReporter
bugInstance
- object describing the bug instancepublic void logError(java.lang.String message)
IErrorLogger
logError
in interface IErrorLogger
message
- the error messagepublic void reportMissingClass(java.lang.ClassNotFoundException ex)
IErrorLogger
reportMissingClass
in interface IErrorLogger
ex
- a ClassNotFoundException resulting from the class lookup failurepublic void reportMissingClass(ClassDescriptor classDescriptor)
IErrorLogger
reportMissingClass
in interface IErrorLogger
classDescriptor
- ClassDescriptor of a missing classpublic void finish()
BugReporter
finish
in interface BugReporter
public void reportQueuedErrors()
BugReporter
reportQueuedErrors
in interface BugReporter
public void addObserver(BugReporterObserver observer)
BugReporter
addObserver
in interface BugReporter
observer
- the observerpublic ProjectStats getProjectStats()
BugReporter
getProjectStats
in interface BugReporter
public void logError(java.lang.String message, java.lang.Throwable e)
IErrorLogger
logError
in interface IErrorLogger
message
- the error messagee
- the exception which is the underlying cause of the errorpublic void reportSkippedAnalysis(MethodDescriptor method)
reportSkippedAnalysis
in interface IErrorLogger
method
- FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.