edu.umd.cs.findbugs.plan

Class ExecutionPlan

public class ExecutionPlan extends 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
static booleanDEBUG
Constructor Summary
ExecutionPlan()
Constructor.
Method Summary
voidaddPlugin(Plugin plugin)
Add a Plugin whose Detectors should be added to the execution plan.
voidbuild()
Build the execution plan.
intgetNumPasses()
Get the number of passes in the execution plan.
static voidmain(String[] argv)
Iterator<AnalysisPass>passIterator()
Get an Iterator over the AnalysisPasses.
voidsetDetectorFactoryChooser(DetectorFactoryChooser factoryChooser)
Set the DetectorFactoryChooser to use to select which detectors to enable.

Field Detail

DEBUG

public static final boolean DEBUG

Constructor Detail

ExecutionPlan

public ExecutionPlan()
Constructor. Creates an empty plan.

Method Detail

addPlugin

public void addPlugin(Plugin plugin)
Add a Plugin whose Detectors should be added to the execution plan.

build

public void 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.

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(String[] argv)

passIterator

public Iterator<AnalysisPass> passIterator()
Get an Iterator over the AnalysisPasses.

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.
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.