1

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

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.