]> git.saurik.com Git - cycript.git/blobdiff - Java/Cycript.java
Improve accuracy of JNI local references tracking.
[cycript.git] / Java / Cycript.java
index cf1cc8e4411c308403685e92318a459521b5b25d..79ebe8e29109e79b0b9e6b885da24155a7ee8bea 100644 (file)
@@ -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
     {