public class nObjContextSelector extends java.lang.Object implements ContextSelector
CallerSiteContext.Otherwise, directly copy the context of the last
non-static method
Context consists of n allocation sites
CGNode
| Modifier and Type | Field and Description |
|---|---|
static ContextKey |
ALLOCATION_STRING_KEY |
| Constructor and Description |
|---|
nObjContextSelector(int n,
ContextSelector base) |
| Modifier and Type | Method and Description |
|---|---|
Context |
getCalleeTarget(CGNode caller,
CallSiteReference site,
IMethod callee,
InstanceKey[] actualParameters)
Given a calling node and a call site, returns the Context in which the callee should be
evaluated.
|
protected Context |
getCalleeTargetForStaticCall(CGNode caller,
CallSiteReference site,
IMethod callee) |
com.ibm.wala.util.intset.IntSet |
getRelevantParameters(CGNode caller,
CallSiteReference site)
Given a calling node and a call site, return the set of parameters based on which this selector
may choose to specialize contexts.
|
public static final ContextKey ALLOCATION_STRING_KEY
public nObjContextSelector(int n,
ContextSelector base)
public Context getCalleeTarget(CGNode caller, CallSiteReference site, IMethod callee, InstanceKey[] actualParameters)
ContextSelectorgetCalleeTarget in interface ContextSelectorcaller - the node containing the call sitesite - description of the call siteactualParameters - the abstract objects (InstanceKeys) of parameters of interest to the
selectorprotected Context getCalleeTargetForStaticCall(CGNode caller, CallSiteReference site, IMethod callee)
public com.ibm.wala.util.intset.IntSet getRelevantParameters(CGNode caller, CallSiteReference site)
ContextSelectorgetRelevantParameters in interface ContextSelectorcaller - the calling nodesite - the specific call site