spring-framework / org.springframework.util / ReflectionUtils / getUniqueDeclaredMethods

getUniqueDeclaredMethods

open static fun getUniqueDeclaredMethods(leafClass: Class<*>): Array<Method>

Get the unique set of declared methods on the leaf class and all superclasses. Leaf class methods are included first and while traversing the superclass hierarchy any methods found with signatures matching a method already included are filtered out.

Parameters

leafClass - the class to introspect

Exceptions

IllegalStateException - if introspection fails