edu.umd.cs.findbugs.plan
Class AnalysisPass

java.lang.Object
  extended by edu.umd.cs.findbugs.plan.AnalysisPass

public class AnalysisPass
extends java.lang.Object

An analysis pass in the overall ExecutionPlan. This is a list of Detectors to be applied to analyzed classes.

Author:
David Hovemeyer
See Also:
ExecutionPlan

Field Summary
private  java.util.LinkedList<DetectorFactory> factoryList
           
 
Constructor Summary
AnalysisPass()
          Constructor.
 
Method Summary
 void addDetectorFactory(DetectorFactory factory)
          Add a DetectorFactory to the end of the pass.
 void clear()
          Clear out all of the DetectorFactory objects.
 java.util.Iterator<DetectorFactory> detectorFactoryIterator()
          Get an Iterator over the DetectorFactory objects in the pass.
 java.util.List<DetectorFactory> getDetectorFactoryList()
          Get the List of DetectorFactory objects in the pass.
 void prependDetectorFactory(DetectorFactory factory)
          Add a DetectorFactory to the beginning of the pass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factoryList

private java.util.LinkedList<DetectorFactory> factoryList
Constructor Detail

AnalysisPass

public AnalysisPass()
Constructor. Creates an empty analysis pass.

Method Detail

addDetectorFactory

public void addDetectorFactory(DetectorFactory factory)
Add a DetectorFactory to the end of the pass.

Parameters:
factory - the DetectorFactory

prependDetectorFactory

public void prependDetectorFactory(DetectorFactory factory)
Add a DetectorFactory to the beginning of the pass.

Parameters:
factory - the DetectorFactory

getDetectorFactoryList

public java.util.List<DetectorFactory> getDetectorFactoryList()
Get the List of DetectorFactory objects in the pass.


detectorFactoryIterator

public java.util.Iterator<DetectorFactory> detectorFactoryIterator()
Get an Iterator over the DetectorFactory objects in the pass.


clear

public void clear()
Clear out all of the DetectorFactory objects. This can be useful as part of re-ordering the DetectorFactory objects within the pass.