|
||||||||||
| 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(org.apache.bcel.classfile.JavaClass javaClass)
Observe a class. |
void |
reportBug(BugInstance bugInstance)
Report a bug. |
void |
reportMissingClass(java.lang.ClassNotFoundException ex)
Called to report a lookup failure. |
void |
reportQueuedErrors()
Report any accumulated error messages. |
void |
reportSkippedAnalysis(JavaClassAndMethod method)
Report that we skipped some analysis of a method |
void |
setDelegate(BugReporter delegate)
Set BugReporter to delegate reported BugInstances to. |
void |
setEngine(FindBugs engine)
Called to give the BugReporter a reference to the FindBugs engine object. |
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 to| Method Detail |
|---|
public BugReporter getRealBugReporter()
BugReporter
getRealBugReporter in interface BugReporterpublic void setDelegate(BugReporter delegate)
delegate - BugReporter to delegate all BugReporter methods topublic BugReporter getDelegate()
public void setEngine(FindBugs engine)
BugReporter
setEngine in interface BugReporterengine - the FindBugs engine objectpublic void setErrorVerbosity(int level)
BugReporter
setErrorVerbosity in interface BugReporterlevel - the verbosity levelpublic void setPriorityThreshold(int threshold)
BugReporter
setPriorityThreshold in interface BugReporterthreshold - bug instances must be at least as important as
this priority to be reportedpublic void observeClass(org.apache.bcel.classfile.JavaClass javaClass)
ClassObserver
observeClass in interface ClassObserverjavaClass - the classpublic void reportBug(BugInstance bugInstance)
BugReporter
reportBug in interface BugReporterbugInstance - object describing the bug instancepublic void logError(java.lang.String message)
RepositoryLookupFailureCallback
logError in interface RepositoryLookupFailureCallbackmessage - the error messagepublic void reportMissingClass(java.lang.ClassNotFoundException ex)
RepositoryLookupFailureCallback
reportMissingClass in interface RepositoryLookupFailureCallbackex - a ClassNotFoundException resulting from the failurepublic void finish()
BugReporter
finish in interface BugReporterpublic void reportQueuedErrors()
BugReporter
reportQueuedErrors in interface BugReporterpublic void addObserver(BugReporterObserver observer)
BugReporter
addObserver in interface BugReporterobserver - the observerpublic ProjectStats getProjectStats()
BugReporter
getProjectStats in interface BugReporter
public void logError(java.lang.String message,
java.lang.Throwable e)
RepositoryLookupFailureCallback
logError in interface RepositoryLookupFailureCallbackmessage - the error messagee - the exception which is the underlying cause of the errorpublic void reportSkippedAnalysis(JavaClassAndMethod method)
reportSkippedAnalysis in interface RepositoryLookupFailureCallbackmethod -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||