Converts a Lisp object to an appropriate jobject.
lw-ji
lisp-to-jobject lisp-object &optional errorp => result
| lisp-object⇩ |
A Lisp object. |
| errorp⇩ |
A generalized boolean. |
| result |
A jobject or nil. |
The function lisp-to-jobject tries to convert the argument lisp-object to a jobject. It succeeds if lisp-object is of a type that matches any Java primitive type or is a string. In general that means integers up to 64 bits, floats, t, nil and strings.
See 15.2 Types and conversion between Lisp and Java for a full description.
If it fails, lisp-to-jobject calls cl:error, unless errorp is nil, in which case it returns nil.
jobject-to-lisp
15.2 Types and conversion between Lisp and Java
LispWorks® User Guide and Reference Manual - 18 Feb 2025 15:32:32