Class CrossLanguageClassTargetSelector
java.lang.Object
com.ibm.wala.cast.ipa.callgraph.CrossLanguageClassTargetSelector
- All Implemented Interfaces:
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 delegate t =o the appropriate language-specific selector.
- Author:
- Julian Dolby (dolby@us.ibm.com)
-
Constructor Summary
ConstructorsConstructorDescriptionCrossLanguageClassTargetSelector(Map<Atom, ClassTargetSelector> languageSelectors) -
Method Summary
Modifier and TypeMethodDescriptiongetAllocatedTarget(CGNode caller, NewSiteReference site) Given a calling node and a new site, return the type to be allocated.
-
Constructor Details
-
CrossLanguageClassTargetSelector
-
-
Method Details
-
getAllocatedTarget
Description copied from interface:ClassTargetSelectorGiven a calling node and a new site, return the type to be allocated.- Specified by:
getAllocatedTargetin 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.
-