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

NextPrevUpTopContentsIndex

setup-java-caller

setup-java-constructor

Functions
Summary

Define a Java caller, which is a function that calls a Java method or a constructor.

Package

lw-ji

Signature

setup-java-caller name class-name method-name &key signatures => result, condition

Signature

setup-java-constructor name class-name &key class-symbol signatures => result, condition

Arguments

name

A symbol.

class-name

A string.

method-name

A string.

signatures

A list of strings.

class-symbol

A symbol.

Values

result

name or nil.

condition

A condition object.

Description

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

See also

define-java-caller
Defining specific callers


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex