public class FindRefComparison extends java.lang.Object implements Detector, ExtendedTypes
Modifier and Type | Class and Description |
---|---|
static class |
FindRefComparison.DynamicStringType
Type representing a dynamically created String.
|
static class |
FindRefComparison.EmptyStringType |
static class |
FindRefComparison.FinalConstant |
static class |
FindRefComparison.ParameterStringType
Type representing a String passed as a parameter.
|
static class |
FindRefComparison.StaticStringType
Type representing a static String.
|
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
T_AVAIL_TYPE, T_BOTTOM, T_DOUBLE_EXTRA, T_EXCEPTION, T_LONG_EXTRA, T_NULL, T_TOP
Constructor and Description |
---|
FindRefComparison(BugReporter bugReporter) |
Modifier and Type | Method and Description |
---|---|
MethodDescriptor |
getInvokedMethod(org.apache.bcel.generic.ConstantPoolGen cpg,
org.apache.bcel.generic.InvokeInstruction inv) |
MethodAnnotation |
getMethodCalledAnnotation(org.apache.bcel.generic.ConstantPoolGen cpg,
org.apache.bcel.generic.InvokeInstruction inv) |
void |
report()
This method is called after all classes to be visited.
|
void |
visitClassContext(ClassContext classContext)
Visit the ClassContext for a class which should be analyzed for instances
of bug patterns.
|
public FindRefComparison(BugReporter bugReporter)
public void visitClassContext(ClassContext classContext)
Detector
visitClassContext
in interface Detector
classContext
- the ClassContext@CheckForNull public MethodAnnotation getMethodCalledAnnotation(org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InvokeInstruction inv)
public MethodDescriptor getInvokedMethod(org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InvokeInstruction inv)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.