declaredPublicStaticFunction

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

Retrieves the public static function of the supplied class name based on the supplied function name.

Return

the KFunction representations of the public static 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 declaredPublicStaticFunction(loadedClass: Class<*>, functionName: String): KFunction<*>?(source)

Retrieves the public static function of the supplied class name based on the supplied function name.

Return

the KFunction representations of the public static 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