public final class LazyInit extends ByteCodePatternDetector implements StatelessDetector
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
LazyInit(BugReporter bugReporter) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
BugReporter |
getBugReporter() |
ByteCodePattern |
getPattern()
Get the ByteCodePattern for this detector.
|
boolean |
prescreen(org.apache.bcel.classfile.Method method,
ClassContext classContext)
Prescreen a method.
|
void |
reportMatch(ClassContext classContext,
org.apache.bcel.classfile.Method method,
ByteCodePatternMatch match)
Called to report an instance of the ByteCodePattern.
|
report, visitClassContextpublic LazyInit(BugReporter bugReporter)
public java.lang.Object clone()
clone in interface StatelessDetectorclone in class java.lang.Objectpublic BugReporter getBugReporter()
getBugReporter in class ByteCodePatternDetectorpublic ByteCodePattern getPattern()
ByteCodePatternDetectorgetPattern in class ByteCodePatternDetectorpublic boolean prescreen(org.apache.bcel.classfile.Method method,
ClassContext classContext)
ByteCodePatternDetectorAs 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.
prescreen in class ByteCodePatternDetectormethod - the methodclassContext - the ClassContext for the methodpublic void reportMatch(ClassContext classContext, org.apache.bcel.classfile.Method method, ByteCodePatternMatch match) throws CFGBuilderException, DataflowAnalysisException
ByteCodePatternDetectorreportMatch in class ByteCodePatternDetectorclassContext - the ClassContext for the analyzed classmethod - the method to instance appears inmatch - the ByteCodePatternMatch object representing the match of the
ByteCodePattern against actual instructions in the methodCFGBuilderExceptionDataflowAnalysisExceptionFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.