public interface MethodTargetSelector
Such policies are consulted by the different analysis mechanisms, both the flow-based and non-flow algorithms. The current mechanism is that the policy object are registered with the AnalysisOptions object, and all analyses that need to analyze invocations ask that object for the method selector to use.
In general, for specialized selectors, it is good practice to build selectors that handle the special case of interest, and otherwise delegate to a child selector. When registering with the AnalysisOptions object, make the child selector be whatever the options object had before.
| 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.
|
IMethod getCalleeTarget(CGNode caller, CallSiteReference site, IClass receiver)
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