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

jobject-of-class-p Function

Summary

The predicate for whether a Java object is an instance of a given Java class.

Package

lw-ji

Signature

jobject-of-class-p object class-spec => result

Arguments
object
A Java object.
class-spec
A class specifier that find-java-class accepts or a Java class.
Values
result
A generalized boolean.
Description

The function jobject-of-class-p returns true if object is an instance of the class specified by class-spec or any of its subclasses; nil is returned otherwise.

class-spec must be either a class specifier that find-java-class accepts, or a Java class, that is a Jobject of class java.lang.Class. The Java class may be an interface, in which case the result verifies whether the object implements the interface.

See also

jobject
jobject-class-name
15.1 Types and conversion between Lisp and Java


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