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

NextPrevUpTopContentsIndex

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) => nil

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 constructor.

It is used by create-instance-jobject-list when its args argument is t. default-constructor-arguments is also used 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 returns nil, which is sometimes useful, but in most cases you probably need to pass something.

See also

create-instance-jobject-list


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex