I want to get all methods from a class but exclude the inherited methods such as : wait, toString, hash etc.
Is there a built in way to do it or do I need to define a blacklist and check the method name against it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can ignore methods like
Note: this will include methods overridden in a sub-class.
If you don’t want any inherited methods you can use