delete obsolete ContextSelector.mayUnderstand()
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2671 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
bc4ebd38b8
commit
2639595789
|
@ -31,12 +31,4 @@ public interface ContextSelector {
|
|||
*/
|
||||
Context getCalleeTarget(CGNode caller, CallSiteReference site, IMethod callee, InstanceKey receiver);
|
||||
|
||||
/**
|
||||
* @param instance
|
||||
* the instance dispatched on. null means "any possible instance"
|
||||
* @return true iff this object may understand how to select a context for the
|
||||
* given target
|
||||
*/
|
||||
boolean mayUnderstand(CGNode caller, CallSiteReference site, IMethod targetMethod, InstanceKey instance);
|
||||
|
||||
}
|
||||
|
|
|
@ -40,7 +40,4 @@ public class DefaultContextSelector implements ContextSelector {
|
|||
return delegate.getCalleeTarget(caller, site, callee, receiver);
|
||||
}
|
||||
|
||||
public boolean mayUnderstand(CGNode caller, CallSiteReference site, IMethod targetMethod, InstanceKey instance) {
|
||||
return delegate.mayUnderstand(caller, site, targetMethod, instance);
|
||||
}
|
||||
}
|
|
@ -60,13 +60,4 @@ public class DelegatingContextSelector implements ContextSelector {
|
|||
return C;
|
||||
}
|
||||
|
||||
|
||||
public boolean mayUnderstand(CGNode caller, CallSiteReference site, IMethod targetMethod, InstanceKey instance) {
|
||||
if (A != null) {
|
||||
if (A.mayUnderstand(caller,site,targetMethod, instance)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return B.mayUnderstand(caller,site,targetMethod, instance);
|
||||
}
|
||||
}
|
|
@ -99,16 +99,4 @@ public abstract class CallStringContextSelector implements ContextSelector {
|
|||
return new CallStringContextPair(cs, baseContext);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean mayUnderstand(CGNode caller, CallSiteReference site, IMethod targetMethod, InstanceKey instance) {
|
||||
return base.mayUnderstand(caller, site, targetMethod, instance);
|
||||
}
|
||||
|
||||
public boolean contextIsIrrelevant(CGNode node, CallSiteReference site) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean allSitesDispatchIdentically(CGNode node, CallSiteReference site) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,23 +47,4 @@ public class OneLevelSiteContextSelector implements ContextSelector {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean mayUnderstand(CGNode caller, CallSiteReference site, IMethod targetMethod, InstanceKey instance) {
|
||||
return baseSelector.mayUnderstand(caller, site, targetMethod, instance);
|
||||
}
|
||||
|
||||
/*
|
||||
* @see com.ibm.wala.ipa.callgraph.ContextSelector#contextIsIrrelevant(com.ibm.wala.ipa.callgraph.CGNode,
|
||||
* com.ibm.wala.classLoader.CallSiteReference)
|
||||
*/
|
||||
public boolean contextIsIrrelevant(CGNode node, CallSiteReference site) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* @see com.ibm.wala.ipa.callgraph.ContextSelector#allSitesDispatchIdentically(com.ibm.wala.types.MethodReference)
|
||||
*/
|
||||
public boolean allSitesDispatchIdentically(CGNode node, CallSiteReference site) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue