declaredPublicNonStaticFunction

fun declaredPublicNonStaticFunction(className: String, functionName: String): KFunction<*>?(source)

Retrieves the public non-static (instance) function of the supplied class name based on the supplied function name.

Return

the KFunction representations of the public instance functions of the supplied class or null

Parameters

className

the fully qualified class name of a class within the JAR files

functionName

the name of the function to be retrieved


fun declaredPublicNonStaticFunction(loadedClass: Class<*>, functionName: String): KFunction<*>?(source)

Retrieves the public non-static (instance) function of the supplied class name based on the supplied function name.

Return

the KFunction representations of the public instance functions of the supplied class or null

Parameters

loadedClass

this class should have been loaded by this loader via the loadClass() function

functionName

the name of the function to be retrieved