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

NextPrevUpTopContentsIndex

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 takes a Java object and a Java class specification, and returns true if the object is an instance of this class or any of its subclasses.

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
Types and conversion between Lisp and Java


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex