Returns the element type of a Java array of a primitive element type.
lw-ji
java-primitive-array-element-type object => result
object⇩ |
A Java object. |
result |
A keyword, t or nil . |
The function java-primitive-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 primitive element type. If object is some other type of Java object, java-primitive-array-element-type
returns nil
. Otherwise it signals an error.
java-primitive-array-element-type
is designed to be fast, so you can use it to test whether a Java object is an array of primitive element type.
java-array-element-type
java-object-array-element-type
15.4 Working with Java arrays
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:46