Java.use(
"com.cyvk.hooktest.MyClass"
)[
"fun"
].overloads.forEach(overload
=
> {
overload.implementation
=
function () {
let ret
=
overload.
apply
(this, arguments);
for
(let i of arguments) {
console.log(
"p ==> "
+
i)
}
console.log(
"r ==> "
+
ret)
return
ret;
}
})