Class JavaScriptFunctionDotCallTargetSelector
java.lang.Object
com.ibm.wala.cast.js.ipa.callgraph.JavaScriptFunctionDotCallTargetSelector
- All Implemented Interfaces:
MethodTargetSelector
Generate IR to model Function.call()
- Author:
- manu
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCalleeTarget(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.protected voidwarnAboutImpreciseCallGraph(CGNode caller, CallSiteReference site)
-
Field Details
-
WARN_ABOUT_IMPRECISE_CALLGRAPH
public static boolean WARN_ABOUT_IMPRECISE_CALLGRAPH -
DEBUG_SYNTHETIC_CALL_METHODS
public static final boolean DEBUG_SYNTHETIC_CALL_METHODS- See Also:
-
SYNTHETIC_CALL_METHOD_PREFIX
- See Also:
-
-
Constructor Details
-
JavaScriptFunctionDotCallTargetSelector
-
-
Method Details
-
getCalleeTarget
Description copied from interface:MethodTargetSelectorGiven a calling node, a call site and (optionally) a dispatch type, return the target method to be called.- Specified by:
getCalleeTargetin interfaceMethodTargetSelector- Parameters:
caller- the GCNode in the call graph containing the callsite- the call site reference of the call sitereceiver- the type of the target object or null- Returns:
- the method to be called.
-
warnAboutImpreciseCallGraph
-