• Post Reply Bookmark Topic Watch Topic
  • New Topic

get the methods in a class  RSS feed

 
Sridhar M Swaminathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
I am looking at something that can let me expose those methods that can actually be useful to expose a result. i.e. to say i want to list down all the method-names that can be used in other programs programatically...
How can i do this??
Thanks
Sridhar
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sridhar.

You should look at using reflection. The classes in java.lang.reflect can help you get the names of the methods.
Also, please note your name does not conform to our javaranch naming standards.
Please change your name to comply with the naming policy to which you agreed when you registered here..

For your publicly displayed name,
use a first name, a space, and a last name.

You can change your name here:
here

You can also find the naming policy here:
http://www.javaranch.com/name.jsp
Thank You!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!