title: Static analysis of Java call graph
body: <p>What I'd like to do is scan a set of Java classes, and trace all method calls from a specific method of an Abstract Class, and within that context, build a list of all code which performs some operation (in this case, instantiates an instance of a certain class). I want to know, the line number, and the arguments supplied.</p>
  
  <p>I've begun looking at BCEL, but it doesn't seem to have call graph tracing built in? I'm hesitant to write my own because getting the overloading, type signatures and polymorphic dispatch right might be be tricky.</p>
  
  <p>I half expected a tool or example code to exist, but I haven't found anything yet. It really feels like I'm about to reinvent a wheel. But if I do it will be an open source wheel and available on GitHub ;-)</p>
  
  <p>PS: You will find the existing question "<a href="https://stackoverflow.com/questions/1982890/how-to-generate-a-java-call-graph">How to Generator a Java Call Graph</a>", because it sounds identical, but it's not at all what I need.</p>