Get the jobject of the argument.
lw-ji
get-jobject object => jobject
ensure-is-jobject object caller => jobject
| object⇩ |
A Lisp object. |
| caller⇩ |
A Lisp object. |
| jobject |
A jobject. |
The functions get-jobject and ensure-is-jobject both get the jobject of object. If object is already a jobject it is simply returned. If it is an instance of standard-java-object and has an associated jobject, this jobject is returned.
Otherwise, get-jobject returns nil but ensure-is-jobject signals an error. ensure-is-jobject uses caller in the error message to identify where the error occurred.
get-jobject is the predicate to check whether an object is a Java object.
jobject-p
jobject
15.2 Types and conversion between Lisp and Java
15.8 CLOS partial integration
LispWorks® User Guide and Reference Manual - 18 Feb 2025 15:32:32