All Manuals > LispWorks® User Guide and Reference Manual > 39 The LW-JI Package

jvalue-store-jboolean

jvalue-store-jbyte

jvalue-store-jchar

jvalue-store-jshort

jvalue-store-jint

jvalue-store-jlong

jvalue-store-jfloat

jvalue-store-jdouble Functions

Summary

For expert use: Store a primitive value in a jvalue object.

Package

lw-ji

Signatures

jvalue-store-jboolean jvalue value => stored-p

jvalue-store-jbyte jvalue value => stored-p

jvalue-store-jchar jvalue value => stored-p

jvalue-store-jshort jvalue value => stored-p

jvalue-store-jint jvalue value => stored-p

jvalue-store-jlong jvalue value => stored-p

jvalue-store-jfloat jvalue value => stored-p

jvalue-store-jdouble jvalue value => stored-p

Arguments
jvalue
A FLI pointer to a jvalue.
value
A Lisp object.
Values
stored-p
A boolean.
Description

These functions check if value is an acceptable value, and if it is, store it in jvalue.

jvalue must a FLI pointer to a jvalue.

value can be any Lisp value. Each of these functions regards value as acceptable if value is of the type indicated by the last part of its name. For example, jvalue-store-jint checks that value is integer inside the range of jint.

If the value is acceptable, the function stores it in jvalue and returns t. Otherwise it returns nil.

Notes

In typical usage of the Java interface, you will not need to use any of these functions.

See also

15.6 Utilities and administration
jvalue
jvalue-store-jobject


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:46