Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the caller(s) of a method without running this system (written in JAVA)

Tags:

java

eclipse

In java, How can I get the caller(s) of a method without running this system. My purpose is to find the callers of some methods (around 150 methods) and want to get the name of all callers of each method. Is it possible to do that?

Is there possible way to do it ( that is not to use call hierarchy or reference in Eclipse because I need to find the callers of many methods and record it to my excel file.)?

Thank you very much.

like image 374
BB. Avatar asked Jan 18 '11 01:01

BB.


1 Answers

In Eclipse, you can do this by right-clicking the method, and choosing "Open Call Hierarchy".

like image 95
David Weiser Avatar answered Nov 15 '22 23:11

David Weiser