edu.umd.cs.findbugs
public abstract class ByteCodePatternDetector extends Object implements Detector
See Also: ByteCodePattern
Method Summary | |
---|---|
protected abstract BugReporter | getBugReporter() |
abstract ByteCodePattern | getPattern()
Get the ByteCodePattern for this detector. |
abstract boolean | prescreen(Method method, ClassContext classContext)
Prescreen a method.
|
void | report() |
abstract void | reportMatch(ClassContext classContext, Method method, ByteCodePatternMatch match)
Called to report an instance of the ByteCodePattern.
|
void | visitClassContext(ClassContext classContext) |
As a datapoint, prescreening speeds up the BCPDoubleCheck detector by a factor of 5 with no loss of generality and only a dozen or so extra lines of code.
Parameters: method the method classContext the ClassContext for the method
Returns: true if the method should be analyzed for instances of the ByteCodePattern
Parameters: classContext the ClassContext for the analyzed class method the method to instance appears in match the ByteCodePatternMatch object representing the match of the ByteCodePattern against actual instructions in the method