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

NextPrevUpTopContentsIndex

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 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
Working with Java arrays


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex