Package com.ibm.wala.cast.ipa.callgraph
Class StandardFunctionTargetSelector
- java.lang.Object
-
- com.ibm.wala.cast.ipa.callgraph.StandardFunctionTargetSelector
-
- All Implemented Interfaces:
MethodTargetSelector
public class StandardFunctionTargetSelector extends Object implements MethodTargetSelector
-
-
Constructor Summary
Constructors Constructor Description StandardFunctionTargetSelector(IClassHierarchy cha, MethodTargetSelector base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.boolean
mightReturnSyntheticMethod(CGNode caller, CallSiteReference site)
boolean
mightReturnSyntheticMethod(MethodReference declaredTarget)
-
-
-
Constructor Detail
-
StandardFunctionTargetSelector
public StandardFunctionTargetSelector(IClassHierarchy cha, MethodTargetSelector base)
-
-
Method Detail
-
getCalleeTarget
public IMethod getCalleeTarget(CGNode caller, CallSiteReference site, IClass receiver)
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(CGNode caller, CallSiteReference site)
-
mightReturnSyntheticMethod
public boolean mightReturnSyntheticMethod(MethodReference declaredTarget)
-
-