• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listing a classes methods etc when no source

 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21113
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "javap" program will do that for you.
 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou , that's what I had in mind.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic