public class BypassClassTargetSelector extends Object implements ClassTargetSelector
ClassTargetSelector
that looks up the declared type of a NewSiteReference
based on bypass rules.Constructor and Description |
---|
BypassClassTargetSelector(ClassTargetSelector parent,
Set<TypeReference> allocatableTypes,
IClassHierarchy cha,
IClassLoader bypassLoader) |
Modifier and Type | Method and Description |
---|---|
IClass |
getAllocatedTarget(CGNode caller,
NewSiteReference site)
Given a calling node and a new site, return the type to be allocated.
|
public BypassClassTargetSelector(ClassTargetSelector parent, Set<TypeReference> allocatableTypes, IClassHierarchy cha, IClassLoader bypassLoader) throws IllegalArgumentException
IllegalArgumentException
public IClass getAllocatedTarget(CGNode caller, NewSiteReference site)
ClassTargetSelector
getAllocatedTarget
in interface ClassTargetSelector
caller
- the GCNode in the call graph containing the new site.site
- the new site reference of the new site.