public class ClassHierarchyMethodTargetSelector extends 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(CGNode caller,
CallSiteReference site) |
boolean |
mightReturnSyntheticMethod(MethodReference declaredTarget) |
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 nullIllegalArgumentException - if call is nullpublic boolean mightReturnSyntheticMethod(CGNode caller, CallSiteReference site)
public boolean mightReturnSyntheticMethod(MethodReference declaredTarget)
Copyright © 2015. All rights reserved.