Class BypassClassTargetSelector
java.lang.Object
com.ibm.wala.ipa.summaries.BypassClassTargetSelector
- All Implemented Interfaces:
ClassTargetSelector
A
ClassTargetSelector that looks up the declared type of a NewSiteReference based
on bypass rules.-
Constructor Summary
ConstructorsConstructorDescriptionBypassClassTargetSelector(ClassTargetSelector parent, Set<TypeReference> allocatableTypes, IClassHierarchy cha, IClassLoader bypassLoader) -
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
-
BypassClassTargetSelector
public BypassClassTargetSelector(ClassTargetSelector parent, Set<TypeReference> allocatableTypes, IClassHierarchy cha, IClassLoader bypassLoader) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
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.
-