public class GetClassContextSelector extends java.lang.Object implements ContextSelector
ContextSelector to intercept calls to Object.getClass()| Modifier and Type | Field and Description |
|---|---|
static MethodReference |
GET_CLASS |
| Constructor and Description |
|---|
GetClassContextSelector() |
| 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.
|
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 MethodReference GET_CLASS
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