I have to find usage of methods in java.
The requirement is to write metacode which can look in to code and find out methods which are used and where. In eclipse we can find it : Find methods calls in Eclipse project
I have tried manually parsing the code and the java parser api : http://code.google.com/p/javaparser/.
I found both the appoach difficult and involves lot of scenario to be handled.
Any APIs which can be used or i have to manually parse the code to find the usages?