|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.DelegatingBugReporter
public class DelegatingBugReporter
A BugReporter which delegates all method calls to another BugReporter. This is useful for customizing the behavior of another bug reporter.
Field Summary |
---|
Fields inherited from interface edu.umd.cs.findbugs.BugReporter |
---|
NORMAL, SILENT |
Constructor Summary | |
---|---|
DelegatingBugReporter(BugReporter delegate)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingBugReporter(BugReporter delegate)
delegate
- another BugReporter to delegate all BugReporter methods toMethod Detail |
---|
public 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™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |