jmake-new

Function

Package: javatools.jlinker

Arguments: class-ref &rest args

This function is associated with the macro jnew. 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 function calls a heuristically determined constructor with the given arguments. If the first argument is string, a symbol or a class reference, we look for a constructor with the number of arguments given. Otherwise, the first argument is assumed to be a constructor reference. If a unique constructor can be selected, then that constructor is called. Otherwise a continuable error is signalled to allow an appropriate constructor to be selected.

The value returned by calling any constructor is always a remote reference. This is the case even for java.lang.String instances which are normally represented by their Lisp equivalent. The following call may be used to extract the string representation of a String instance:

(jcall concat x "")

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.