|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.cast.ipa.callgraph.CrossLanguageMethodTargetSelector
public class CrossLanguageMethodTargetSelector
A MethodTargetSelector implementation that supports multiple languages. It works by delegating to a language-specific child selector based on the language associated with the MethodReference for which a target is being chosen. This provides a simple way to combine language-specific target selection policies---such as those used for constructor calls in JavaScript and for bean methods in J2EE.
| Constructor Summary | |
|---|---|
CrossLanguageMethodTargetSelector(java.util.Map languageSelectors)
|
|
| Method Summary | |
|---|---|
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)
TODO: make this go away? an unnecessary optimization? |
boolean |
mightReturnSyntheticMethod(MethodReference declaredTarget)
* TODO: make this go away? an unnecessary optimization? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrossLanguageMethodTargetSelector(java.util.Map languageSelectors)
| Method Detail |
|---|
public IMethod getCalleeTarget(CGNode caller,
CallSiteReference site,
IClass receiver)
MethodTargetSelector
getCalleeTarget in interface MethodTargetSelectorcaller - 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
public boolean mightReturnSyntheticMethod(CGNode caller,
CallSiteReference site)
MethodTargetSelector
mightReturnSyntheticMethod in interface MethodTargetSelectorpublic boolean mightReturnSyntheticMethod(MethodReference declaredTarget)
MethodTargetSelector
mightReturnSyntheticMethod in interface MethodTargetSelector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||