Class MapBasedCSManager
java.lang.Object
pascal.taie.analysis.pta.core.cs.element.MapBasedCSManager
- All Implemented Interfaces:
CSManager
Manages data by maintaining the data and their context-sensitive
counterparts by maps.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArrayIndex
(CSObj array) getCSCallSite
(Context context, Invoke callSite) getCSMethod
(Context context, JMethod method) getCSObjsOf
(Obj obj) getCSVarsOf
(Var var) getInstanceField
(CSObj base, JField field) getStaticField
(JField field) getVars()
pointers()
-
Constructor Details
-
MapBasedCSManager
public MapBasedCSManager()
-
-
Method Details
-
getCSVar
-
getStaticField
- Specified by:
getStaticField
in interfaceCSManager
- Returns:
- the corresponding StaticField pointer for given static field.
-
getInstanceField
- Specified by:
getInstanceField
in interfaceCSManager
- Returns:
- the corresponding InstanceField pointer for given object and instance field.
-
getArrayIndex
- Specified by:
getArrayIndex
in interfaceCSManager
- Returns:
- the corresponding ArrayIndex pointer for given array object.
-
getVars
-
getCSVars
-
getCSVarsOf
- Specified by:
getCSVarsOf
in interfaceCSManager
- Returns:
- all relevant context-sensitive variables for given variable.
-
getStaticFields
- Specified by:
getStaticFields
in interfaceCSManager
- Returns:
- all static field pointers.
-
getInstanceFields
- Specified by:
getInstanceFields
in interfaceCSManager
- Returns:
- all instance field pointers.
-
getArrayIndexes
- Specified by:
getArrayIndexes
in interfaceCSManager
- Returns:
- all array index pointers.
-
pointers
-
getCSObj
-
getObjects
- Specified by:
getObjects
in interfaceCSManager
- Returns:
- all context-sensitive objects.
-
getCSObjsOf
- Specified by:
getCSObjsOf
in interfaceCSManager
- Returns:
- all relevant context-sensitive objects for given object.
-
getObjectIndexer
- Specified by:
getObjectIndexer
in interfaceCSManager
- Returns:
Indexer
forCSObj
maintained by this manager. The indexer is useful for creating efficient points-to sets.
-
getCSCallSite
- Specified by:
getCSCallSite
in interfaceCSManager
- Returns:
- a context-sensitive call site for given context and call site.
-
getCSMethod
- Specified by:
getCSMethod
in interfaceCSManager
- Returns:
- a context-sensitive method for given context and method.
-
getMethodIndexer
- Specified by:
getMethodIndexer
in interfaceCSManager
- Returns:
Indexer
forCSMethod
maintained by this manager.
-