getDeclaredMethods

open fun getDeclaredMethods(clazz: Class<out Any>): Array<Method>

Variant of getDeclaredMethods that uses a local cache in order to avoid new Method instances. In addition, it also includes Java 8 default methods from locally implemented interfaces, since those are effectively to be treated just like declared methods.

Return

the cached array of methods

Since

5.2

Parameters

clazz

the class to introspect

See also

Throws

if introspection fails