| 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: 16483
|
|
|
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.
|
 |
 |
|
|
subject: Listing a classes methods etc when no source
|
|
|