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
|
void |
forgetLastBug() |
SourceLineAnnotation |
getLastBugLocation() |
java.lang.Iterable<? extends SourceLineAnnotation> |
locations(BugInstance bug) |
void |
reportAccumulatedBugs()
Report accumulated warnings to the BugReporter.
|
void |
reportBug(BugInstance bug,
edu.umd.cs.findbugs.BugAccumulator.Data d) |
java.lang.Iterable<? extends BugInstance> |
uniqueBugs() |
public BugAccumulator(BugReporter reporter)
reporter
- the BugReporter to which warnings should eventually be
reported@CheckForNull public SourceLineAnnotation getLastBugLocation()
public void forgetLastBug()
public 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 reportBug(BugInstance bug, edu.umd.cs.findbugs.BugAccumulator.Data d)
public void clearBugs()
public void accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location)
public void accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, java.lang.String sourceFile, Location location)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.