Package pascal.taie.analysis.pta.toolkit
Class PointerAnalysisResultExImpl
java.lang.Object
pascal.taie.analysis.pta.toolkit.PointerAnalysisResultExImpl
- All Implemented Interfaces:
PointerAnalysisResultEx
-
Constructor Summary
ConstructorDescriptionPointerAnalysisResultExImpl
(PointerAnalysisResult base, boolean eagerInit) Constructs an extended pointer analysis result. -
Method Summary
Modifier and TypeMethodDescriptiongetBase()
getMethodsInvokedOn
(Obj obj) getObjectsAllocatedIn
(JMethod method) getObjectsOf
(Type type) getReceiverObjectsOf
(JMethod method)
-
Constructor Details
-
PointerAnalysisResultExImpl
Constructs an extended pointer analysis result.- Parameters:
base
- base pointer analysis resulteagerInit
- whether initialize all fields eagerly; if this result will be accessed in concurrent setting, then the caller should givetrue
.
-
-
Method Details
-
getBase
- Specified by:
getBase
in interfacePointerAnalysisResultEx
- Returns:
- the base pointer analysis result.
-
getMethodsInvokedOn
- Specified by:
getMethodsInvokedOn
in interfacePointerAnalysisResultEx
- Returns:
- the methods whose receiver objects contain obj.
-
getReceiverObjectsOf
- Specified by:
getReceiverObjectsOf
in interfacePointerAnalysisResultEx
- Returns:
- the receiver objects of given method.
-
getObjectsAllocatedIn
- Specified by:
getObjectsAllocatedIn
in interfacePointerAnalysisResultEx
- Returns:
- the objects that are allocated in given method.
-
getObjectsOf
- Specified by:
getObjectsOf
in interfacePointerAnalysisResultEx
- Returns:
- the objects of given type.
-
getObjectTypes
- Specified by:
getObjectTypes
in interfacePointerAnalysisResultEx
- Returns:
- types of all reachable objects in pointer analysis.
-