Package com.ibm.wala.ipa.callgraph.impl
Class ClassHierarchyClassTargetSelector
- java.lang.Object
-
- com.ibm.wala.ipa.callgraph.impl.ClassHierarchyClassTargetSelector
-
- All Implemented Interfaces:
ClassTargetSelector
public class ClassHierarchyClassTargetSelector extends Object implements ClassTargetSelector
AClassTargetSelectorthat simply looks up the declared type of aNewSiteReferencein the appropriate class hierarchy.
-
-
Constructor Summary
Constructors Constructor Description ClassHierarchyClassTargetSelector(IClassHierarchy cha)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IClassgetAllocatedTarget(CGNode caller, NewSiteReference site)Given a calling node and a new site, return the type to be allocated.
-
-
-
Constructor Detail
-
ClassHierarchyClassTargetSelector
public ClassHierarchyClassTargetSelector(IClassHierarchy cha)
- Parameters:
cha- governing class hierarchy
-
-
Method Detail
-
getAllocatedTarget
public IClass getAllocatedTarget(CGNode caller, NewSiteReference site)
Description copied from interface:ClassTargetSelectorGiven a calling node and a new site, return the type to be allocated.- Specified by:
getAllocatedTargetin 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.
-
-