public class BugAccumulator
extends java.lang.Object
Constructor and Description |
---|
BugAccumulator(BugReporter reporter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accumulateBug(BugInstance bug,
BytecodeScanningDetector visitor)
Accumulate a warning at source location currently being visited by
given BytecodeScanningDetector.
|
void |
accumulateBug(BugInstance bug,
ClassContext classContext,
org.apache.bcel.generic.MethodGen methodGen,
java.lang.String sourceFile,
Location location) |
void |
accumulateBug(BugInstance bug,
ClassContext classContext,
org.apache.bcel.classfile.Method method,
Location location) |
void |
accumulateBug(BugInstance bug,
SourceLineAnnotation sourceLine)
Accumulate a warning at given source location.
|
void |
clearBugs()
Clear all accumulated bugs without reporting them
|
java.lang.Iterable<? extends SourceLineAnnotation> |
locations(BugInstance bug) |
void |
reportAccumulatedBugs()
Report accumulated warnings to the BugReporter.
|
java.lang.Iterable<? extends BugInstance> |
uniqueBugs() |
public BugAccumulator(BugReporter reporter)
reporter
- the BugReporter to which warnings should eventually be reportedpublic void accumulateBug(BugInstance bug, SourceLineAnnotation sourceLine)
bug
- the warningsourceLine
- the source locationpublic void accumulateBug(BugInstance bug, BytecodeScanningDetector visitor)
bug
- the warningvisitor
- the BytecodeScanningDetectorpublic java.lang.Iterable<? extends BugInstance> uniqueBugs()
public java.lang.Iterable<? extends SourceLineAnnotation> locations(BugInstance bug)
public void reportAccumulatedBugs()
public void clearBugs()
public void accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location)
bug
- classContext
- method
- location
- public void accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, java.lang.String sourceFile, Location location)
bug
- classContext
- methodGen
- sourceFile
- location
- FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.