Class JavaScriptFunctionApplyTargetSelector

  • All Implemented Interfaces:
    com.ibm.wala.ipa.callgraph.MethodTargetSelector

    public class JavaScriptFunctionApplyTargetSelector
    extends java.lang.Object
    implements com.ibm.wala.ipa.callgraph.MethodTargetSelector
    We need to generate synthetic methods for Function.apply() in the target selector, so that the AstMethod for Function_prototype_apply() in the prologue doesn't actually get used in the CGNodes used for calls to Function.prototype.apply(). The generated dummy methods should never actually be used except as a stub.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.ibm.wala.classLoader.IMethod getCalleeTarget​(com.ibm.wala.ipa.callgraph.CGNode caller, com.ibm.wala.classLoader.CallSiteReference site, com.ibm.wala.classLoader.IClass receiver)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SYNTHETIC_APPLY_METHOD_PREFIX

        public static final java.lang.String SYNTHETIC_APPLY_METHOD_PREFIX
        See Also:
        Constant Field Values
    • Constructor Detail

      • JavaScriptFunctionApplyTargetSelector

        public JavaScriptFunctionApplyTargetSelector​(com.ibm.wala.ipa.callgraph.MethodTargetSelector base)
    • Method Detail

      • getCalleeTarget

        public com.ibm.wala.classLoader.IMethod getCalleeTarget​(com.ibm.wala.ipa.callgraph.CGNode caller,
                                                                com.ibm.wala.classLoader.CallSiteReference site,
                                                                com.ibm.wala.classLoader.IClass receiver)
        Specified by:
        getCalleeTarget in interface com.ibm.wala.ipa.callgraph.MethodTargetSelector