Returns the element type of a Java array of a non-primitive element type.
lw-ji
java-object-array-element-type object => result
object⇩ |
A Java object. |
result |
One of the keywords :array , :object and :string , or nil . |
The function java-object-array-element-type
returns the element type (as a keyword as listed in 15.1 Types and conversion between Lisp and Java) if object is an array with non-primitive element type. If object is some other type of Java object, java-object-array-element-type
returns nil
. Otherwise it signals an error.
java-object-array-element-type
to test whether a Java object is an array of non-primitive element type.
If you want to check whether object is any array (primitive or not), use java-array-element-type instead. Sometimes java-primitive-array-element-type may be more convenient.
java-array-element-type
java-primitive-array-element-type
15.4 Working with Java arrays
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:46