wrapper class for a Qore object; this class holds a weak reference to the Qore object
More...
|
| QoreObject (long obj) |
| creates the wrapper object with a pointer to an object; this Java object holds a weak reference to the Qore object passed here
|
|
String | className () |
| returns the class name for the object
|
|
boolean | instanceOf (String class_name) |
| returns true if the object is an instance of the given class
|
|
Object | callMethod (String name, Object... args) throws Throwable |
| calls the given method with the given arguments and returns the result More...
|
|
Object | callMethodArgs (String name, Object[] args) throws Throwable |
| calls the given method with the given arguments and returns the result More...
|
|
Object | callMethodSave (String name, Object... args) throws Throwable |
| Calls the given method with the given arguments and returns the result; if an object is returned, then a strong reference to the object is stored in thread-local data. More...
|
|
Object | callMethodArgsSave (String name, Object[] args) throws Throwable |
| Calls the given method with the given arguments and returns the result; if an object is returned, then a strong reference to the object is stored in thread-local data. More...
|
|
Object | getMemberValue (String name) throws Throwable |
| returns the value of the given member
|
|
| QoreObjectBase (long obj) |
| creates the wrapper object with a pointer to an object; this Java object holds a weak reference to the Qore object passed here
|
|
long | get () |
| returns the pointer to the object
|
|
void | release () |
| releases the Qore object without destroying it More...
|
|
void | destroy () |
| runs the destructor
|
|
wrapper class for a Qore object; this class holds a weak reference to the Qore object
Due to the different in garbage collecting approaches (Qore's garbage collector being deterministic and Java's not), strong references to Qore objects must be managed outside of Java.
- Note
- API usage errors such as with releasing / deleting the object and then calling methods on the object will cause a crash