Class Overrides.StartComponentMethodTargetSelector

    • Constructor Detail

    • Method Detail

      • setParent

        public void setParent​(MethodTargetSelector parent)
        The MethodTarget selector to ask before trying to resolve the Method with this one.
        Throws:
        IllegalStateException - if tried to set parent twice
      • setChild

        public void setChild​(MethodTargetSelector child)
        The MethodTarget selector to ask when the Method could not be resolved by this one. In order to be able to use this function you have to set null as child in the Constructor.
        Throws:
        IllegalStateException - if tried to set parent twice
      • getCalleeTarget

        public IMethod getCalleeTarget​(CGNode caller,
                                       CallSiteReference site,
                                       IClass receiver)
        Given a calling node, a call site and (optionally) a dispatch type, return the target method to be called.
        Specified by:
        getCalleeTarget in interface MethodTargetSelector
        Parameters:
        caller - the GCNode in the call graph containing the call
        site - the call site reference of the call site
        receiver - the type of the target object or null
        Returns:
        the method to be called.