replaceMethods

fun replaceMethods(instance: Any, methodName: String)

look for all named methods of the instance's class and add them to the list of methods that can be dispatched possibly replacing existing methods.

Parameters

instance

the instance whose class provides the method definitions.

methodName

the name of the methods to be looked for.