aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 18150
    
    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
 
Similar Threads
Java Class Sources
Performance testing without source
migrate from jdk1.3 to jdk1.4
API examples
JAR file