fun invokeStatic( clazz: String?, methodName: String?, types: Array<Class<*>?>?, values: Array<Any?>?, defaultValue: Any? ): Any? { return try { invokeStatic(Class.forName(clazz), methodName, types, values) } catch (e: ClassNotFoundException) { defaultValue } catch (e: NoSuchMethodException) { defaultValue } }
Invokes the specified parameterless method if it exists .