views:

59

answers:

1

hi, i use java reflections to get methods used in a class.I also want to get the variables name and their types used in those methods.How can i do that?Help

+1  A: 

You can't have their names through reflection, (but you don't really need them anyway, names are just in the source code to make it more usable through the API).

To get the parameters, you'll have to use getParameterTypes

Valentin Rocher
@Valentin-thanks
Steven