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

default-constructor-arguments Generic Function

Summary

Returns a default list of arguments to pass to the constructor.

Package

lw-ji

Signature

default-constructor-arguments instance => list

Method signatures

default-constructor-arguments (instance standard-java-object)

Arguments
instance
An instance of a subclass of standard-java-object.
Values
list
A list.
Description

The generic function default-constructor-arguments returns a default list of arguments to pass to the jobject constructor for the CLOS instance instance.

It is called by create-instance-jobject-list when its args argument is t. default-constructor-arguments is also called by the cl:initialize-instance method of standard-java-object when :construct is passed with value t. It is intended for you to specialize on your own classes.

The default method (on standard-java-object) returns nil, which is sometimes useful, but in most cases you probably need to pass some arguments to the constructor.

See also

create-instance-jobject-list


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