Returns a default list of arguments to pass to the constructor.
lw-ji
default-constructor-arguments instance => list
default-constructor-arguments (instance standard-java-object)
instance⇩ |
An instance of a subclass of standard-java-object. |
list |
A list. |
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.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:46