jdo-call

Function

Package: javatools.jlinker

Arguments: method-ref instance &rest args

This function is associated with the macro jcall. The macro allows compile-time collection of java class names and method signatures. This information is used to generate a file of class and method definitions that may be loaded to initialize an application, and avoid the class and method lookup overhead in the body of the application.

This is the general form for calling Java methods.

If the first argument is a reference to a static method, the second arguement is ignored.

If the first argument is a class method, the second argument must be a reference to an instance of an appropriate class.

The remaining arguments must be appropriate references or primitive values.

The last argument may be a result modifier; one of the following keywords that add advice about the value returned.

:copyreturn a scalar value, or Lisp vector if at all possible.
:refreturn a remote reference if that makes sense.
:ignoredont return aything at all.
:onewaydont return anything at all and dont even wait for the answer.

This function calls a heuristically determined class method with the given arguments. If a unique method can be selected, then that method is called. Otherwise a continuable error is signalled to allow an appropriate method to be selected.

See jlinker.htm for more information on the jLinker facility.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.