Define a Java caller, which is a function that calls a Java method or a constructor.
lw-ji
setup-java-caller name class-name method-name &key signatures static-p return-jobject non-virtual-p => result, condition
setup-java-constructor name class-name &key class-symbol signatures => result, condition
| name⇩ |
A symbol. |
| class-name⇩ |
A string. |
| method-name⇩ |
A string. |
| signatures⇩ |
A list of strings. |
| static-p⇩ | |
| return-jobject⇩ | |
| non-virtual-p⇩ | |
| class-symbol⇩ |
A symbol. |
| result |
name or nil. |
| condition |
A condition object. |
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 class-name, method-name, signatures, static-p, return-jobject, non-virtual-p and class-symbol and the behavior of the defined caller is the same as the macros define-java-caller and define-java-constructor.
Unlike the macros define-java-caller 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.
The functions (when successful) return name.
LispWorks® User Guide and Reference Manual - 18 Feb 2025 15:32:32