|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.plan.ExecutionPlan
public class 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).
Field Summary | |
---|---|
private static boolean |
DEBUG
|
private java.util.LinkedList<AnalysisPass> |
passList
|
private java.util.List<Plugin> |
pluginList
|
Constructor Summary | |
---|---|
ExecutionPlan()
Constructor. |
Method Summary | ||
---|---|---|
private DetectorNode |
addOrCreateDetectorNode(java.lang.String className,
java.util.Map<java.lang.String,DetectorNode> nodeMap,
java.util.Map<java.lang.String,DetectorFactory> factoryMap,
ConstraintGraph constraintGraph)
|
|
void |
addPlugin(Plugin plugin)
Add a Plugin whose Detectors should be added to the execution plan. |
|
void |
build()
Build the execution plan. |
|
private ConstraintGraph |
buildConstraintGraph(java.util.Map<java.lang.String,DetectorNode> nodeMap,
java.util.Map<java.lang.String,DetectorFactory> factoryMap,
java.util.List<DetectorOrderingConstraint> constraintList)
Build a constraint graph. |
|
private java.util.Map<java.lang.String,DetectorFactory> |
buildFactoryMap()
|
|
private void |
buildPassList(ConstraintGraph constraintGraph)
|
|
private static
|
copyTo(java.util.Iterator<T> iter,
java.util.Collection<T> dest)
|
|
private void |
dumpGraph(ConstraintGraph graph)
|
|
static void |
main(java.lang.String[] argv)
|
|
private void |
print()
|
|
private void |
sortPass(java.util.List<DetectorOrderingConstraint> constraintList,
java.util.Map<java.lang.String,DetectorFactory> factoryMap,
AnalysisPass pass)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final boolean DEBUG
private java.util.List<Plugin> pluginList
private java.util.LinkedList<AnalysisPass> passList
Constructor Detail |
---|
public ExecutionPlan()
Method Detail |
---|
public void addPlugin(Plugin plugin)
public void build() throws OrderingConstraintException
OrderingConstraintException
private static <T> void copyTo(java.util.Iterator<T> iter, java.util.Collection<T> dest)
private java.util.Map<java.lang.String,DetectorFactory> buildFactoryMap()
private ConstraintGraph buildConstraintGraph(java.util.Map<java.lang.String,DetectorNode> nodeMap, java.util.Map<java.lang.String,DetectorFactory> factoryMap, java.util.List<DetectorOrderingConstraint> constraintList) throws OrderingConstraintException
nodeMap
- map to be populated with detector
class names to constraint graph nodes for
those detectorsfactoryMap
- map of class names to DetectorFactory objects
(needed to create graph nodes)constraintList
- List of ordering constraints
OrderingConstraintException
private DetectorNode addOrCreateDetectorNode(java.lang.String className, java.util.Map<java.lang.String,DetectorNode> nodeMap, java.util.Map<java.lang.String,DetectorFactory> factoryMap, ConstraintGraph constraintGraph) throws OrderingConstraintException
OrderingConstraintException
private void buildPassList(ConstraintGraph constraintGraph) throws OrderingConstraintException
OrderingConstraintException
private void sortPass(java.util.List<DetectorOrderingConstraint> constraintList, java.util.Map<java.lang.String,DetectorFactory> factoryMap, AnalysisPass pass) throws OrderingConstraintException
OrderingConstraintException
private void print()
private void dumpGraph(ConstraintGraph graph)
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |