Package edu.umd.cs.findbugs.plan
Class AnalysisPass
java.lang.Object
edu.umd.cs.findbugs.plan.AnalysisPass
An analysis pass in the overall ExecutionPlan. This is a list of Detectors to
be applied to analyzed classes.
- Author:
- David Hovemeyer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToPass
(DetectorFactory factory) Make given DetectorFactory a member of this pass.void
append
(DetectorFactory factory) Append the given DetectorFactory to the end of the ordered detector list.boolean
contains
(DetectorFactory factory) Return whether or not this pass contains the given DetectorFactory.Get the members of this pass.Get Set of pass members which haven't been assigned a position in the pass.instantiateDetector2sInPass
(BugReporter bugReporter) Instantiate all of the Detector2s in this pass and return them in a (correctly-ordered) array.Detector[]
instantiateDetectorsInPass
(BugReporter bugReporter) Deprecated.call instantiateDetector2sInPass() insteaditerator()
Get an Iterator over the DetectorFactory objects in the pass, in their assigned order.
-
Constructor Details
-
AnalysisPass
public AnalysisPass()Constructor. Creates an empty analysis pass.
-
-
Method Details
-
addToPass
Make given DetectorFactory a member of this pass. Does not position the factory within the overall list of detectors.- Parameters:
factory
- a DetectorFactory
-
append
Append the given DetectorFactory to the end of the ordered detector list. The factory must be a member of the pass.- Parameters:
factory
- a DetectorFactory
-
getMembers
Get the members of this pass.- Returns:
- members of this pass
-
getUnpositionedMembers
Get Set of pass members which haven't been assigned a position in the pass. -
iterator
Get an Iterator over the DetectorFactory objects in the pass, in their assigned order. -
contains
Return whether or not this pass contains the given DetectorFactory.- Parameters:
factory
- the DetectorFactory- Returns:
- true if this pass contains the DetectorFactory, false if not
-
instantiateDetector2sInPass
Instantiate all of the Detector2s in this pass and return them in a (correctly-ordered) array.- Parameters:
bugReporter
- the BugReporter- Returns:
- array of Detector2s
-
instantiateDetectorsInPass
Deprecated.call instantiateDetector2sInPass() insteadInstantiate all of the detectors in this pass as objects implementing the BCEL-only Detector interface. Detectors that do not support this interface will not be created. Therefore, new code should use the instantiateDetector2sInPass() method, which can support all detectors.- Parameters:
bugReporter
- the BugReporter- Returns:
- array of Detectors
-