Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse : list methods and variables of all classes [closed]

I am starting to use some Java code which was written by someone else. I have to understand, change and test it. The author is not available now. The package has some 50 files (and so classes) of different sizes. It would be great if I could just see/print out the names of the methods (public and private) and the public variables (like they are visible in the "outline window" in Eclipse). It would really help in understanding the code since I can just look at this and understand the general purpose of each class.

Can I do it in Eclipse other than by generating Javadoc, since Javadoc really creates too much details ? Is there a Eclipse plugin for this ? Or any other tool ?

Example:

For a Class file which represents a student, I could just get :

String name
int[] marks
int year
int idNumber

Student()
printName()
printMarks()
setName(String name)

...

like image 665
euphoria83 Avatar asked Apr 14 '09 23:04

euphoria83


1 Answers

In Package Explorer, right click on the package in question, select Open Type Hierarchy (Shortcut F4) gives a nice view of the hierarchy of objects in that package, selecting a class in that view will give you the class details. Not exactly what you're asking for but it'll help in understanding the package that you're changing.

like image 102
Peter Avatar answered Nov 11 '22 06:11

Peter