Package edu.umd.cs.findbugs.detect
Class TestDataflowAnalysis<Fact,AnalysisType extends DataflowAnalysis<Fact>>
- java.lang.Object
-
- edu.umd.cs.findbugs.detect.TestDataflowAnalysis<Fact,AnalysisType>
-
- All Implemented Interfaces:
Detector2,FirstPassDetector,NonReportingDetector,Priorities
public class TestDataflowAnalysis<Fact,AnalysisType extends DataflowAnalysis<Fact>> extends java.lang.Object implements Detector2, NonReportingDetector
This detector is just a test harness to test a dataflow analysis class specified by the dataflow.classname property.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<? extends Dataflow<Fact,AnalysisType>>dataflowClassprivate java.lang.StringdataflowClassNameprivate booleaninitializedprivate java.lang.StringmethodName-
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description TestDataflowAnalysis(BugReporter bugReporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.Class<? extends Dataflow<Fact,AnalysisType>>asDataflowClass(java.lang.Class<?> c)voidfinishPass()This method is called at the end of the analysis pass.private voidinitialize()voidvisitClass(ClassDescriptor classDescriptor)Visit a class.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.umd.cs.findbugs.Detector2
getDetectorClassName
-
-
-
-
Field Detail
-
dataflowClassName
private final java.lang.String dataflowClassName
-
methodName
private final java.lang.String methodName
-
dataflowClass
private java.lang.Class<? extends Dataflow<Fact,AnalysisType extends DataflowAnalysis<Fact>>> dataflowClass
-
initialized
private boolean initialized
-
-
Constructor Detail
-
TestDataflowAnalysis
public TestDataflowAnalysis(BugReporter bugReporter)
-
-
Method Detail
-
finishPass
public void finishPass()
Description copied from interface:Detector2This method is called at the end of the analysis pass.- Specified by:
finishPassin interfaceDetector2
-
visitClass
public void visitClass(ClassDescriptor classDescriptor) throws CheckedAnalysisException
Description copied from interface:Detector2Visit a class.- Specified by:
visitClassin interfaceDetector2- Parameters:
classDescriptor- descriptor naming the class to visit- Throws:
CheckedAnalysisException- if an exception occurs during analysis
-
initialize
private void initialize()
-
asDataflowClass
private java.lang.Class<? extends Dataflow<Fact,AnalysisType>> asDataflowClass(java.lang.Class<?> c)
-
-