Package edu.umd.cs.findbugs
Interface DetectorFactoryChooser
-
public interface DetectorFactoryChooserPredicate for choosing DetectorFactory objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanchoose(DetectorFactory factory)Return whether or not given DetectorFactory should be chosen.voidenable(DetectorFactory factory)Forcibly enable the factory due to ordering constraints with other enabled detectors, if the factory would not otherwise be chosen bychoose(DetectorFactory).default booleanwasForciblyEnabled(DetectorFactory factory)Check whether the given factory was forcibly enabled viaenable(DetectorFactory)byExecutionPlan.build()
-
-
-
Method Detail
-
choose
boolean choose(DetectorFactory factory)
Return whether or not given DetectorFactory should be chosen.- Parameters:
factory- the DetectorFactory- Returns:
- true if the DetectorFactory should be chosen, false if not
-
enable
void enable(DetectorFactory factory)
Forcibly enable the factory due to ordering constraints with other enabled detectors, if the factory would not otherwise be chosen bychoose(DetectorFactory).- Parameters:
factory-
-
wasForciblyEnabled
default boolean wasForciblyEnabled(@NonNull DetectorFactory factory)
Check whether the given factory was forcibly enabled viaenable(DetectorFactory)byExecutionPlan.build()- Parameters:
factory- the DetectorFactory to check, not null- Returns:
- returns false by default
- See Also:
ExecutionPlan.build()
-
-