X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/7341eedbaf526ef2f0986b576c656906050e270a..80fe26a61e165b7456274d6cc52ae40cb53b5c13:/Java/Cycript.java diff --git a/Java/Cycript.java b/Java/Cycript.java index cf1cc8e..79ebe8e 100644 --- a/Java/Cycript.java +++ b/Java/Cycript.java @@ -62,6 +62,18 @@ public static class Wrapper return protect_; } + public Object call(String property, Object[] arguments) { + try { + return handle(protect_, property, arguments); + } catch (Throwable throwable) { + return new RuntimeException(throwable); + } + } + + public String toString() { + return call("toString", null).toString(); + } + public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {