, , , , BeanUtils?
There are standard reflection APIs, but what you ask is problematic. The Bean convention is that a method starting with getor is(and some other characteristics) is a property. Without this convention, it is impossible to know which of the class methods are property attributes (or setters) and which are methods that have a completely different purpose. For example, you would not want to call it an File.delete()erroneous belief that it was a getter for some property boolean!
source
share