Class ClassHierarchyClassTargetSelector
java.lang.Object
com.ibm.wala.ipa.callgraph.impl.ClassHierarchyClassTargetSelector
- All Implemented Interfaces:
ClassTargetSelector
A
ClassTargetSelector
that simply looks up the declared type of a NewSiteReference
in the appropriate class hierarchy.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllocatedTarget
(CGNode caller, NewSiteReference site) Given a calling node and a new site, return the type to be allocated.
-
Constructor Details
-
ClassHierarchyClassTargetSelector
- Parameters:
cha
- governing class hierarchy
-
-
Method Details
-
getAllocatedTarget
Description copied from interface:ClassTargetSelector
Given a calling node and a new site, return the type to be allocated.- Specified by:
getAllocatedTarget
in interfaceClassTargetSelector
- Parameters:
caller
- the GCNode in the call graph containing the new site.site
- the new site reference of the new site.- Returns:
- the class to be allocated.
-