edu.umd.cs.findbugs

Class DelegatingBugReporter

public class DelegatingBugReporter extends Object implements BugReporter

A BugReporter which delegates all method calls to another BugReporter. This is useful for customizing the behavior of another bug reporter.

Author: David Hovemeyer

Constructor Summary
DelegatingBugReporter(BugReporter delegate)
Constructor.
Method Summary
voidaddObserver(BugReporterObserver observer)
voidfinish()
BugReportergetDelegate()
ProjectStatsgetProjectStats()
BugReportergetRealBugReporter()
voidlogError(String message)
voidlogError(String message, Throwable e)
voidobserveClass(ClassDescriptor classDescriptor)
voidreportBug(BugInstance bugInstance)
voidreportMissingClass(ClassNotFoundException ex)
voidreportMissingClass(ClassDescriptor classDescriptor)
voidreportQueuedErrors()
voidreportSkippedAnalysis(MethodDescriptor method)
Report that we skipped some analysis of a method
voidsetDelegate(BugReporter delegate)
Set BugReporter to delegate reported BugInstances to.
voidsetErrorVerbosity(int level)
voidsetPriorityThreshold(int threshold)

Constructor Detail

DelegatingBugReporter

public DelegatingBugReporter(BugReporter delegate)
Constructor.

Parameters: delegate another BugReporter to delegate all BugReporter methods to

Method Detail

addObserver

public void addObserver(BugReporterObserver observer)

finish

public void finish()

getDelegate

public BugReporter getDelegate()

getProjectStats

public ProjectStats getProjectStats()

getRealBugReporter

public BugReporter getRealBugReporter()

logError

public void logError(String message)

logError

public void logError(String message, Throwable e)

observeClass

public void observeClass(ClassDescriptor classDescriptor)

reportBug

public void reportBug(BugInstance bugInstance)

reportMissingClass

public void reportMissingClass(ClassNotFoundException ex)

reportMissingClass

public void reportMissingClass(ClassDescriptor classDescriptor)

reportQueuedErrors

public void reportQueuedErrors()

reportSkippedAnalysis

public void reportSkippedAnalysis(MethodDescriptor method)
Report that we skipped some analysis of a method

Parameters: method

setDelegate

public void setDelegate(BugReporter delegate)
Set BugReporter to delegate reported BugInstances to.

Parameters: delegate BugReporter to delegate all BugReporter methods to

setErrorVerbosity

public void setErrorVerbosity(int level)

setPriorityThreshold

public void setPriorityThreshold(int threshold)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.