Class RecursionBoundContextSelector
- java.lang.Object
-
- com.ibm.wala.cast.js.ipa.callgraph.RecursionBoundContextSelector
-
- All Implemented Interfaces:
com.ibm.wala.ipa.callgraph.ContextSelector
public class RecursionBoundContextSelector extends java.lang.Object implements com.ibm.wala.ipa.callgraph.ContextSelectorA context selector that attempts to detect recursion beyond some depth in a base selector. If such recursion is detected, the base selector's context is replaced withEverywhere.EVERYWHERE.
-
-
Constructor Summary
Constructors Constructor Description RecursionBoundContextSelector(com.ibm.wala.ipa.callgraph.ContextSelector base, int recursionBound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.wala.ipa.callgraph.ContextgetCalleeTarget(com.ibm.wala.ipa.callgraph.CGNode caller, com.ibm.wala.classLoader.CallSiteReference site, com.ibm.wala.classLoader.IMethod callee, com.ibm.wala.ipa.callgraph.propagation.InstanceKey[] actualParameters)com.ibm.wala.util.intset.IntSetgetRelevantParameters(com.ibm.wala.ipa.callgraph.CGNode caller, com.ibm.wala.classLoader.CallSiteReference site)
-
-
-
Constructor Detail
-
RecursionBoundContextSelector
public RecursionBoundContextSelector(com.ibm.wala.ipa.callgraph.ContextSelector base, int recursionBound)- Parameters:
recursionBound- bound on recursion depth, with the top level of the context returned by the base selector being depth 0. TheEverywhere.EVERYWHEREcontext is returned if the base context exceeds this bound.
-
-
Method Detail
-
getCalleeTarget
public com.ibm.wala.ipa.callgraph.Context getCalleeTarget(com.ibm.wala.ipa.callgraph.CGNode caller, com.ibm.wala.classLoader.CallSiteReference site, com.ibm.wala.classLoader.IMethod callee, com.ibm.wala.ipa.callgraph.propagation.InstanceKey[] actualParameters)- Specified by:
getCalleeTargetin interfacecom.ibm.wala.ipa.callgraph.ContextSelector
-
getRelevantParameters
public com.ibm.wala.util.intset.IntSet getRelevantParameters(com.ibm.wala.ipa.callgraph.CGNode caller, com.ibm.wala.classLoader.CallSiteReference site)- Specified by:
getRelevantParametersin interfacecom.ibm.wala.ipa.callgraph.ContextSelector
-
-