[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

querying the InvokeGraph



Hi!

Today I have two questions on querying the InvokeGraph. I created this
graph using ClassHierarchyAnalysis.newInvokeGraph(). After that, let's
say, I want to determine callers and callees for a given method. I do
that using:
getTransitiveTargetsOf()
getTargetsOf()
getCallingSitesOf()
The last method is wrking and returns a huge list of calling sites. But
the both first ones always return a list of length 0 (and there _are_
methods called by the given method.
Second question: getCallingSitesOf() returns a List of what? When I do a
toString() I get the actual invocation as String. But how can I
determine, which _method_ actually called the given method?

Thanks,
Eric

--------------------------------
Eric Bodden
University of Kent at Canterbury