static void mt_invoke(ExecutionContext context, Object target, Object[] args) throws ResolvedControlThrowable { LuaFunction fn = callTarget(context, target); if (fn == target) { fn.invoke(context, args); } else { Object[] mtArgs = new Object[args.length + 1]; mtArgs[0] = target; System.arraycopy(args, 0, mtArgs, 1, args.length); fn.invoke(context, mtArgs); } }
static void mt_invoke(ExecutionContext context, Object target, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws ResolvedControlThrowable { LuaFunction fn = callTarget(context, target); if (fn == target) fn.invoke(context, arg1, arg2, arg3, arg4, arg5); else fn.invoke(context, new Object[] { target, arg1, arg2, arg3, arg4, arg5 }); }
static void mt_invoke(ExecutionContext context, Object target, Object arg1, Object arg2) throws ResolvedControlThrowable { LuaFunction fn = callTarget(context, target); if (fn == target) fn.invoke(context, arg1, arg2); else fn.invoke(context, target, arg1, arg2); }
static void mt_invoke(ExecutionContext context, Object target, Object arg1, Object arg2, Object arg3) throws ResolvedControlThrowable { LuaFunction fn = callTarget(context, target); if (fn == target) fn.invoke(context, arg1, arg2, arg3); else fn.invoke(context, target, arg1, arg2, arg3); }
static void mt_invoke(ExecutionContext context, Object target, Object arg1, Object arg2, Object arg3, Object arg4) throws ResolvedControlThrowable { LuaFunction fn = callTarget(context, target); if (fn == target) fn.invoke(context, arg1, arg2, arg3, arg4); else fn.invoke(context, target, arg1, arg2, arg3, arg4); }
static void mt_invoke(ExecutionContext context, Object target) throws ResolvedControlThrowable { LuaFunction fn = callTarget(context, target); if (fn == target) fn.invoke(context); else fn.invoke(context, target); }
static void mt_invoke(ExecutionContext context, Object target, Object arg1) throws ResolvedControlThrowable { LuaFunction fn = callTarget(context, target); if (fn == target) fn.invoke(context, arg1); else fn.invoke(context, target, arg1); }