protected static class Overrides.StartComponentMethodTargetSelector extends Object implements MethodTargetSelector
Modifier and Type | Field and Description |
---|---|
protected MethodTargetSelector |
child |
protected MethodTargetSelector |
parent |
protected HashMap<MethodReference,SummarizedMethod> |
syntheticMethods |
Constructor and Description |
---|
StartComponentMethodTargetSelector(HashMap<MethodReference,SummarizedMethod> syntheticMethods,
MethodTargetSelector child) |
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.
|
void |
setChild(MethodTargetSelector child)
The MethodTarget selector to ask when the Method could not be resolved by this one.
|
void |
setParent(MethodTargetSelector parent)
The MethodTarget selector to ask before trying to resolve the Method with this one.
|
protected MethodTargetSelector parent
protected MethodTargetSelector child
protected final HashMap<MethodReference,SummarizedMethod> syntheticMethods
public StartComponentMethodTargetSelector(HashMap<MethodReference,SummarizedMethod> syntheticMethods, MethodTargetSelector child)
syntheticMethods
- The Methods to overridechild
- Ask child if unable to resolve. May be nullpublic void setParent(MethodTargetSelector parent)
IllegalStateException
- if tried to set parent twicepublic void setChild(MethodTargetSelector child)
IllegalStateException
- if tried to set parent twicepublic IMethod getCalleeTarget(CGNode caller, CallSiteReference site, IClass receiver)
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 null