Call-graph analysis: How to find out if method CA#ma eventually calls CB#mb

136 views Asked by At

Say I have a java project consisting of too many classes. There is an entry-point method that calls other methods defined in other classes, which in turn call other methods.

Given an entry point and target candidate(s), I want to see all possible subsets of the static call-graph leading from entry to target.

I am looking for a tool, ideally as an Eclipse plugin, possibly taking advantage of JDT. But using the .java sources is OK, too. There is no reflection trickery involved, so it's OK to miss those dynamic dependencies.

The question I want to answer is, if and how can any one of a set of methods get invoked by another method, however far the call-stack may be.

0

There are 0 answers