The functions setup-java-caller
and setup-java-constructor
define a Java caller, which is a function that calls a Java method or a constructor. Once this the caller is defined, calls to name ultimately invoke the Java method or constructor.
Interpretation of the arguments and behavior of the defined caller is the same as the macros default-constructor-arguments and define-java-constructor.
Unlike the macros default-constructor-arguments and define-java-constructor. the functions setup-java-caller
and setup-java-constructor
do the lookup immediately, and therefore require running Java. If the lookup fails, they do not set the symbol function, and return two values: nil
and a condition indicating the reason for the failure.
LispWorks User Guide and Reference Manual - 13 Feb 2015