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 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
FieldsModifier and TypeFieldDescriptionprivate Class
<? extends Dataflow<Fact, AnalysisType>> private final String
private boolean
private final String
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Class
<? extends Dataflow<Fact, AnalysisType>> asDataflowClass
(Class<?> c) void
This method is called at the end of the analysis pass.private void
void
visitClass
(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 Details
-
dataflowClassName
-
methodName
-
dataflowClass
-
initialized
private boolean initialized
-
-
Constructor Details
-
TestDataflowAnalysis
-
-
Method Details
-
finishPass
public void finishPass()Description copied from interface:Detector2
This method is called at the end of the analysis pass.- Specified by:
finishPass
in interfaceDetector2
-
visitClass
Description copied from interface:Detector2
Visit a class.- Specified by:
visitClass
in interfaceDetector2
- Parameters:
classDescriptor
- descriptor naming the class to visit- Throws:
CheckedAnalysisException
- if an exception occurs during analysis
-
initialize
private void initialize() -
asDataflowClass
-