Class JavaScriptFunctionApplyTargetSelector
- java.lang.Object
-
- com.ibm.wala.cast.js.ipa.callgraph.JavaScriptFunctionApplyTargetSelector
-
- All Implemented Interfaces:
com.ibm.wala.ipa.callgraph.MethodTargetSelector
public class JavaScriptFunctionApplyTargetSelector extends java.lang.Object implements com.ibm.wala.ipa.callgraph.MethodTargetSelectorWe 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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSYNTHETIC_APPLY_METHOD_PREFIX
-
Constructor Summary
Constructors Constructor Description JavaScriptFunctionApplyTargetSelector(com.ibm.wala.ipa.callgraph.MethodTargetSelector base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.wala.classLoader.IMethodgetCalleeTarget(com.ibm.wala.ipa.callgraph.CGNode caller, com.ibm.wala.classLoader.CallSiteReference site, com.ibm.wala.classLoader.IClass receiver)
-
-
-
Field Detail
-
SYNTHETIC_APPLY_METHOD_PREFIX
public static final java.lang.String SYNTHETIC_APPLY_METHOD_PREFIX
- See Also:
- Constant Field Values
-
-
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:
getCalleeTargetin interfacecom.ibm.wala.ipa.callgraph.MethodTargetSelector
-
-