allDeclaredMethods

private fun allDeclaredMethods(klass: Class<*>): Sequence<Method>

Retrieves all declared methods from the given class, its superclasses, and interfaces.

Methods that are synthetic or bridge-generated are excluded. The traversal stops before reaching Any.

Return

a lazy Sequence of Method instances discovered in the class hierarchy.

Parameters

klass

the root class whose hierarchy will be scanned for declared methods.