public abstract class CallStringContextSelector extends java.lang.Object implements ContextSelector
| Modifier and Type | Class and Description |
|---|---|
static class |
CallStringContextSelector.CallStringContextPair |
| Modifier and Type | Field and Description |
|---|---|
protected ContextSelector |
base |
static ContextKey |
BASE |
static ContextKey |
CALL_STRING |
| Constructor and Description |
|---|
CallStringContextSelector(ContextSelector base) |
| Modifier and Type | Method and Description |
|---|---|
Context |
getCalleeTarget(CGNode caller,
CallSiteReference site,
IMethod callee,
InstanceKey[] receiver)
Given a calling node and a call site, returns the Context in which the callee should be
evaluated.
|
protected CallString |
getCallString(CGNode caller,
CallSiteReference site,
IMethod target) |
protected abstract int |
getLength(CGNode caller,
CallSiteReference site,
IMethod target) |
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 CALL_STRING
public static final ContextKey BASE
protected final ContextSelector base
public CallStringContextSelector(ContextSelector base)
protected abstract int getLength(CGNode caller, CallSiteReference site, IMethod target)
protected CallString getCallString(CGNode caller, CallSiteReference site, IMethod target)
public Context getCalleeTarget(CGNode caller, CallSiteReference site, IMethod callee, InstanceKey[] receiver)
ContextSelectorgetCalleeTarget in interface ContextSelectorcaller - the node containing the call sitesite - description of the call sitereceiver - the abstract objects (InstanceKeys) of parameters of interest to the
selectorpublic com.ibm.wala.util.intset.IntSet getRelevantParameters(CGNode caller, CallSiteReference site)
ContextSelectorgetRelevantParameters in interface ContextSelectorcaller - the calling nodesite - the specific call site