Package edu.umd.cs.findbugs.plan
Class ExecutionPlan
java.lang.Object
edu.umd.cs.findbugs.plan.ExecutionPlan
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a Plugin whose Detectors should be added to the execution plan.void
build()
Build the execution plan.void
dispose()
int
Get the number of passes in the execution plan.boolean
boolean
static void
Get an Iterator over the AnalysisPasses.void
setDetectorFactoryChooser
(DetectorFactoryChooser factoryChooser) Set the DetectorFactoryChooser to use to select which detectors to enable.
-
Field Details
-
DEBUG
public static final boolean DEBUG
-
-
Constructor Details
-
ExecutionPlan
public ExecutionPlan()Constructor. Creates an empty plan.
-
-
Method Details
-
dispose
public void dispose() -
setDetectorFactoryChooser
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
-
isActive
-
addPlugin
Add a Plugin whose Detectors should be added to the execution plan.- Throws:
OrderingConstraintException
-
build
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
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
- Throws:
Exception
-