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