public class ClassHierarchyClassTargetSelector extends Object implements ClassTargetSelector
ClassTargetSelector that simply looks up the declared type of a NewSiteReference in the appropriate class hierarchy.| Constructor and Description |
|---|
ClassHierarchyClassTargetSelector(IClassHierarchy cha) |
| Modifier and Type | Method and Description |
|---|---|
IClass |
getAllocatedTarget(CGNode caller,
NewSiteReference site)
Given a calling node and a new site, return the type to be allocated.
|
public ClassHierarchyClassTargetSelector(IClassHierarchy cha)
cha - governing class hierarchypublic IClass getAllocatedTarget(CGNode caller, NewSiteReference site)
ClassTargetSelectorgetAllocatedTarget in interface ClassTargetSelectorcaller - the GCNode in the call graph containing the new site.site - the new site reference of the new site.Copyright © 2015. All rights reserved.