A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/LW/html/lw-867.htm below:

define-java-callers

Description

The macro define-java-callers defines multiple Java callers for methods in the same class.

class-name must specify a Java class by its full name.

Each item of method-specs must be a list where the first element is a symbol (the Java caller name), the second element is a string (the method name) and optionally followed by keyword/value pairs for define-java-caller. define-java-callers processes each item by inserting the class-name after the Java caller name, and then using the result as the arguments to define-java-caller:

(define-java-callers class-name
  (caller-name1 method-name1)
  (caller-name2 method-name2))
=>
(progn
  (define-java-caller caller-name1 class-name
 method-name1)
  (define-java-caller caller-name2 class-name
 method-name2)
  class-name
)

define-java-callers is a more compact way to write several methods for the same class, but functionally it is identical to using define-java-caller explicitly.

define-java-callers returns the class-name.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4