com.ibm.wala.ipa.callgraph
Interface Context
- All Known Implementing Classes:
- CallerContext, CallerContextPair, CallerSiteContext, CallerSiteContextPair, Everywhere, JavaTypeContext, ReceiverInstanceContext
public interface Context
A Context is a mapping from a name (ContextKey) to a value (ContextItem)
For example, for CFA-1, there is only one name ("caller");
and the context maps "caller" to an IMethod
As another example, for CPA, there would be name for
each parameter slot ("zero","one","two"), and the Context
provides a mapping from this name to a set of types.
eg. "one" -> {java.lang.String, java.lang.Date}
get
ContextItem get(ContextKey name)
- Returns:
- the objects corresponding to a given name