0

I have given a small project to understand the flow and functionality. I am a fresher. This project contains 3 packages with each containing 4 to 5 java classes. now I study a method and confused with its calling. Is there any way to know fwhere where in the project, that method is called from. If i try running single single classes , then few methods don't get called so not able to see their exact output.

Alpana Chauhan
  • 407
  • 1
  • 9
  • 18

3 Answers3

0

You can simple go to the yourmethod() and press ctrl+alt+h

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
0

Create a project out of it in editors like Eclipse or Intellij Idea. Right click on method you would get options to get method callers.

ddinde
  • 96
  • 1
  • 9
0

Import your project in Eclipse and for each method highlight it and right click and select "Open Call Hierarchy" you will get all the method calls for that method in the view "Call Hierarchy".Expand and you will get the flow.

m b
  • 310
  • 1
  • 8