The FLI type jobject is the type of objects representing all non-primitive Java objects (including arrays).
jobject
s that represent the same Java object are not necessarily equal in any Lisp sense, and their addresses are not necessarily equal either. In fact, normally they will be different if they come from a different Java call. To check whether two jobject
s represent the same Java object, use java-objects-eq (which takes CLOS Java instances too).
The print-function of jobject
tries to print its Java class name, but what it prints may be a parent class of the actual class of the jobject
. The function jobject-class-name returns the name of the actual class of the jobject, and also caches it in the jobject
.
jobject-p
java-objects-eq
jobject-string
jobject-class-name
jobject-of-class-p
jobject-to-lisp
jobject-pretty-class-name
Types and conversion between Lisp and Java
LispWorks User Guide and Reference Manual - 13 Feb 2015