Package edu.umd.cs.findbugs.plan
Class ExecutionPlan
- java.lang.Object
-
- edu.umd.cs.findbugs.plan.ExecutionPlan
-
public class ExecutionPlan extends java.lang.Object
A plan for executing Detectors on an application. Automatically assigns Detectors to passes and orders Detectors within each pass based on ordering constraints specified in the plugin descriptor(s).- Author:
- David Hovemeyer
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEBUG
-
Constructor Summary
Constructors Constructor Description ExecutionPlan()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPlugin(Plugin plugin)
Add a Plugin whose Detectors should be added to the execution plan.void
build()
Build the execution plan.void
dispose()
int
getNumPasses()
Get the number of passes in the execution plan.boolean
isActive(java.lang.Class<? extends Detector> detectorClass)
boolean
isActive(java.lang.String detectorClass)
static void
main(java.lang.String[] argv)
java.util.Iterator<AnalysisPass>
passIterator()
Get an Iterator over the AnalysisPasses.void
setDetectorFactoryChooser(DetectorFactoryChooser factoryChooser)
Set the DetectorFactoryChooser to use to select which detectors to enable.
-
-
-
Method Detail
-
dispose
public void dispose()
-
setDetectorFactoryChooser
public void setDetectorFactoryChooser(DetectorFactoryChooser factoryChooser)
Set the DetectorFactoryChooser to use to select which detectors to enable. This must be called before any Plugins are added to the execution plan.
-
isActive
public boolean isActive(@DottedClassName java.lang.String detectorClass)
-
isActive
public boolean isActive(java.lang.Class<? extends Detector> detectorClass)
-
addPlugin
public void addPlugin(Plugin plugin) throws OrderingConstraintException
Add a Plugin whose Detectors should be added to the execution plan.- Throws:
OrderingConstraintException
-
build
public void build() throws OrderingConstraintException
Build the execution plan. Using the ordering constraints specified in the plugin descriptor(s), assigns Detectors to passes and orders the Detectors within those passes.- Throws:
OrderingConstraintException
-
passIterator
public java.util.Iterator<AnalysisPass> passIterator()
Get an Iterator over the AnalysisPasses.
-
getNumPasses
public int getNumPasses()
Get the number of passes in the execution plan.- Returns:
- the number of passes in the execution plan
-
main
public static void main(java.lang.String[] argv) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-