Is there any class to diagnose invoked method in a java class?
<ol>
<li><p>I need to diagnose all invoked methods in a class(either declared in the class or not)  using it's source code. Means that give the class source code to a method as an input and get the invoked method by the class as the output. In fact I need a class/method which operates same as java lexical analyzer . 
Is there any method to diagnose all invoked methods ?</p></li>
<li><p>of course I tried to use Runtime.traceMethodCalls(); to solve the problem but there was no output. I've read I need to run java debug with java -g  but unfortunately when I try to run java -g it makes error. Now what should I do ? Is there any approach ?</p></li>
</ol>
