Class ContextSelectorFactory
java.lang.Object
pascal.taie.analysis.pta.core.cs.selector.ContextSelectorFactory
Provides static factory methods for various context selectors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContextSelector
static ContextSelector
makeGuidedSelector
(Map<JMethod, String> csMap) static ContextSelector
static ContextSelector
static ContextSelector
makeSelectiveSelector
(String cs, Set<JMethod> csMethods)
-
Constructor Details
-
ContextSelectorFactory
public ContextSelectorFactory()
-
-
Method Details
-
makeCISelector
- Returns:
- selector for context insensitivity.
-
makePlainSelector
- Returns:
- a context selector for given context sensitivity variant. The returned selector applies the same variant for all methods.
-
makeSelectiveSelector
- Returns:
- a selective context selector which applies given context sensitivity variant (specified by cs) to set of methods (specified by csMethods), and cs to all objects.
-
makeSelectiveSelector
public static ContextSelector makeSelectiveSelector(String cs, Predicate<JMethod> isCSMethod, Predicate<Obj> isCSObj) - Returns:
- a selective context selector which applies given context sensitivity variant (specified by cs) to part of methods (specified by isCSMethod) and part of objects (specified by isCSObj).
-
makeGuidedSelector
- Returns:
- a guided context selector which applies the context sensitivity variants to the methods according to given map.
-