Class JavaScriptConstructTargetSelector
java.lang.Object
com.ibm.wala.cast.js.ipa.callgraph.JavaScriptConstructTargetSelector
- All Implemented Interfaces:
MethodTargetSelector
generates instructions to simulate the semantics of JS constructor invocations
-
Constructor Summary
ConstructorDescriptionJavaScriptConstructTargetSelector
(JavaScriptConstructorFunctions constructors, MethodTargetSelector base) -
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.boolean
-
Constructor Details
-
JavaScriptConstructTargetSelector
-
JavaScriptConstructTargetSelector
public JavaScriptConstructTargetSelector(JavaScriptConstructorFunctions constructors, MethodTargetSelector base)
-
-
Method Details
-
getCalleeTarget
Description copied from interface:MethodTargetSelector
Given a calling node, a call site and (optionally) a dispatch type, return the target method to be called.- Specified by:
getCalleeTarget
in 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.
-
mightReturnSyntheticMethod
public boolean mightReturnSyntheticMethod()
-