public class ClassHierarchyMethodTargetSelector extends java.lang.Object implements MethodTargetSelector
MethodTargetSelector that simply looks up the declared type, name and descriptor of a
CallSiteReference in the appropriate class hierarchy.| Constructor and Description |
|---|
ClassHierarchyMethodTargetSelector(IClassHierarchy cha)
Initialization.
|
| Modifier and Type | Method and Description |
|---|---|
IMethod |
getCalleeTarget(CGNode caller,
CallSiteReference call,
IClass receiver)
This target selector searches the class hierarchy for the method matching the signature of the
call that is appropriate for the receiver type.
|
boolean |
mightReturnSyntheticMethod() |
public ClassHierarchyMethodTargetSelector(IClassHierarchy cha)
cha - The class hierarchy to use.public IMethod getCalleeTarget(CGNode caller, CallSiteReference call, IClass receiver)
getCalleeTarget in interface MethodTargetSelectorcaller - the GCNode in the call graph containing the callcall - the call site reference of the call sitereceiver - the type of the target object or nulljava.lang.IllegalArgumentException - if call is nullpublic boolean mightReturnSyntheticMethod()