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

java-object-array-element-type Function

Summary

Returns the element type of a Java array of a non-primitive element type.

Package

lw-ji

Signature

java-object-array-element-type object => result

Arguments
object
A Java object.
Values
result
One of the keywords :array, :object and :string, or nil.
Description

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.

Notes
  1. You can use 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.

See also

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