|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.ipa.callgraph.propagation.cfa.ContainerContextSelector
public class ContainerContextSelector
This context selector returns a context customized for the instancekey of the receiver if
| Field Summary | |
|---|---|
static Atom |
arraycopyAtom
|
static TypeReference |
JavaLangSystem
|
static MemberReference |
synthArraycopy
|
static TypeReference |
SyntheticSystem
|
| Constructor Summary | |
|---|---|
ContainerContextSelector(ClassHierarchy cha,
ZeroXInstanceKeys delegate)
|
|
| Method Summary | |
|---|---|
boolean |
allSitesDispatchIdentically(CGNode node,
CallSiteReference site)
|
boolean |
contextIsIrrelevant(CGNode node,
CallSiteReference site)
|
static CGNode |
findNodeRecursiveMatchingContext(IMethod M,
Context C)
This method walks recursively up the definition of a context C, to see if the chain of contexts that give rise to C includes the method M. |
static Context |
findRecursiveMatchingContext(IMethod M,
Context C)
This method walks recursively up the definition of a context C, to see if the chain of contexts that give rise to C includes the method M. |
static Context |
findRecursiveMatchingContext(IMethod M,
Context C,
InstanceKey receiver)
This method walks recursively up the definition of a context C, to see if the chain of contexts that give rise to C a) includes the method M. |
int |
getBoundOnNumberOfTargets(CGNode caller,
CallSiteReference site,
IMethod targetMethod)
|
Context |
getCalleeTarget(CGNode caller,
CallSiteReference site,
IMethod callee,
InstanceKey receiver)
Given a call site, returns the Context in which the callee should be evaluated. |
protected ClassHierarchy |
getClassHierarchy()
|
static boolean |
isArrayCopy(MemberReference m)
|
protected boolean |
isContainer(IClass C)
|
boolean |
mayUnderstand(CGNode caller,
CallSiteReference site,
IMethod targetMethod,
InstanceKey receiver)
|
void |
setWarnings(WarningSet newWarnings)
Bind this object to a new object to track warnings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final TypeReference SyntheticSystem
public static final TypeReference JavaLangSystem
public static final Atom arraycopyAtom
public static final MemberReference synthArraycopy
| Constructor Detail |
|---|
public ContainerContextSelector(ClassHierarchy cha,
ZeroXInstanceKeys delegate)
cha - delegate - | Method Detail |
|---|
public Context getCalleeTarget(CGNode caller,
CallSiteReference site,
IMethod callee,
InstanceKey receiver)
ContextSelector
getCalleeTarget in interface ContextSelectorsite - description of the call site
public static boolean isArrayCopy(MemberReference m)
public static Context findRecursiveMatchingContext(IMethod M,
Context C,
InstanceKey receiver)
public static CGNode findNodeRecursiveMatchingContext(IMethod M,
Context C)
public static Context findRecursiveMatchingContext(IMethod M,
Context C)
public int getBoundOnNumberOfTargets(CGNode caller,
CallSiteReference site,
IMethod targetMethod)
getBoundOnNumberOfTargets in interface ContextSelector
public boolean mayUnderstand(CGNode caller,
CallSiteReference site,
IMethod targetMethod,
InstanceKey receiver)
mayUnderstand in interface ContextSelectorreceiver - the instance dispatched on. null means "any possible instance"
protected boolean isContainer(IClass C)
C -
public void setWarnings(WarningSet newWarnings)
ContextSelector
setWarnings in interface ContextSelector
public boolean contextIsIrrelevant(CGNode node,
CallSiteReference site)
contextIsIrrelevant in interface ContextSelectorprotected ClassHierarchy getClassHierarchy()
public boolean allSitesDispatchIdentically(CGNode node,
CallSiteReference site)
allSitesDispatchIdentically in interface ContextSelector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||