Package com.ibm.wala.cast.ipa.callgraph
Class CrossLanguageClassTargetSelector
- java.lang.Object
-
- com.ibm.wala.cast.ipa.callgraph.CrossLanguageClassTargetSelector
-
- All Implemented Interfaces:
ClassTargetSelector
public class CrossLanguageClassTargetSelector extends Object implements ClassTargetSelector
A ClassTargetSelector implementation that delegates to one of several child selectors based on the language of the type being allocated. This selector uses the language associated with the TypeReference of the allocated type to delagate t =o the appropriate language-specific selector.
-
-
Constructor Summary
Constructors Constructor Description CrossLanguageClassTargetSelector(Map languageSelectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IClass
getAllocatedTarget(CGNode caller, NewSiteReference site)
Given a calling node and a new site, return the type to be allocated.
-
-
-
Constructor Detail
-
CrossLanguageClassTargetSelector
public CrossLanguageClassTargetSelector(Map languageSelectors)
-
-
Method Detail
-
getAllocatedTarget
public IClass getAllocatedTarget(CGNode caller, NewSiteReference site)
Description copied from interface:ClassTargetSelector
Given a calling node and a new site, return the type to be allocated.- Specified by:
getAllocatedTarget
in interfaceClassTargetSelector
- Parameters:
caller
- the GCNode in the call graph containing the new site.site
- the new site reference of the new site.- Returns:
- the class to be allocated.
-
-