Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find super class method

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)My class A has many super class.I want to see all the available methods in A.Is there any way and its shortcut key ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jacob,
Please specify what IDE you are inquiring about. This is going to be a different answer for different tools.
 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two way that come to mind (there are probably more):

1) If you have a variable, call it aaa, of type A, you could type "aaa." then do CTRL-SPACE and a pop-up list of all public methods and fields should show up.

2) While editing A.java, right click and select Source > Override/Implement Methods. The resulting dialog box contains all non-private methods for all superclasses of A.
 
Zviki Cohen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This can become even simpler with nWire, which is a code exploration plugin for Eclipse. It has a dynamic view which will automatically show you the associations you're looking for.

Check out the demo at: http://www.nwiresoftware.com/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic