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

jobject-class-name Function

Summary

Returns the name of the class to which a jobject belongs.

Package

lw-ji

Signature

jobject-class-name jobject => class-name

Arguments
jobject
Values
class-name
A string.
Description

The function jobject-class-name returns a string which is the name of the class to which the Java object jobject belongs. The name is then cached in the jobject.

The class for arrays is the internal class name, which is different from the way it is declared in Java. For other objects, the name is the full name of the class.

To obtain the class name as declared in Java, use jobject-pretty-class-name.

See also

jobject
jobject-of-class-p
jobject-pretty-class-name
15.1 Types and conversion between Lisp and Java


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