public class StandardFunctionTargetSelector extends Object implements MethodTargetSelector
Constructor and Description |
---|
StandardFunctionTargetSelector(IClassHierarchy cha,
MethodTargetSelector base) |
Modifier and Type | Method and 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) |
public StandardFunctionTargetSelector(IClassHierarchy cha, MethodTargetSelector base)
public IMethod getCalleeTarget(CGNode caller, CallSiteReference site, IClass receiver)
MethodTargetSelector
getCalleeTarget
in interface MethodTargetSelector
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 nullpublic boolean mightReturnSyntheticMethod(CGNode caller, CallSiteReference site)
public boolean mightReturnSyntheticMethod(MethodReference declaredTarget)