• Post Reply Bookmark Topic Watch Topic
  • New Topic

call hierarchy versus method hierarchy  RSS feed

 
Mark Richardson
Ranch Hand
Posts: 102
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In IntelliJ, I put my cursor on the add method (which comes from ArrayList) and I pressed CTRL+SHIFT+H. This shows me the method hierarchy. On the top right pane, I saw ArrayList and under it, I see 66 different classes. In simple English, what does this mean? Does it mean that every time this add method is run, that all of these classes are somehow involved? That doesn't make a lot of sense to me. In contrast, we have call hierarchy (CTRL+ALT+H) which shows me an incredibly long list of methods and classes.

I understand that add is a JRE or "system" method and probably a bad example to start off with. So I picked a method that is part of my company's code. In this case, a call hierarchy gives me my method, under which is another method, under which is another method and finally, another method. How should I read this? What is the direction of the flow here? Should this be read from top to bottom or bottom to top? I.e. Does the method at the very bottom call the method on top of it, and so on? or vice versa?

Finally, in day-to-day work, is the call hierarchy a more useful feature than the method hierarchy?


 
Paul Clapham
Sheriff
Posts: 22378
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a question about IntelliJ, so I've moved it to our IDE forum. Also people can't see your screenshot because you didn't link to an image so the forum software can't deal with it. Perhaps you could make another post which contains an image link instead, or else describe the screen in some way?

Thanks.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!