invokeDeclaredMethod

@JvmName(name = "invokeDeclaredMethod")
fun invokeDeclaredMethod(clazz: Class<*>, name: String, vararg args: Any?): Any?

Invoke method(ONLY OF THIS CLASS WITHOUT INHERITED METHODS) with no access restrictions based on method name, match overloaded methods based on number and type of arguments does NOT handle null arguments

Return

  • result of invoking method

Parameters

clazz
  • class with declared methods

name
  • method name in yarn mapping

args
  • arguments of method