Class ClassHierarchyClassTargetSelector

    • 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: ClassTargetSelector
        Given a calling node and a new site, return the type to be allocated.
        Specified by:
        getAllocatedTarget in interface ClassTargetSelector
        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.