File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Listing a classes methods etc when no source Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Listing a classes methods etc when no source" Watch "Listing a classes methods etc when no source" New topic
Author

Listing a classes methods etc when no source

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
I believe that a class's methods (including return type and signature) plus the exceptions the method throws are 'embodied' in its class file.
Is this correct ? Is there an easy way to obtain this information without writing Reflection code ?
After all, classes are in the CLASSPATH, but where's the source !!!
Thank you.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18989
    
    8

The "javap" program will do that for you.
Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
Thankyou , that's what I had in mind.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Listing a classes methods etc when no source