I was wondering if there was any way to determine if a method represented by given java.lang.Method
object overrides another methods represented by another java.lang.Method
object?
I'm working on Stronlgy typed javascript, and I need to be able to be able to know if a method overrides another one in order to be able to rename both of them to a shorter name.
In this case, I am talking about the extended definition of overriding, as supported by the @Override
annotation, which includes implementation of interface and abstract class methods.
I'd be happy with any solution involving either reflection directly, or using any library that already does this.