The javaObj Command


javaObj ?-noconvert? signature ?arg arg ...?

Each Java object handle is also the name of a Tcl command that can be used to invoke accessible methods of that object from Tcl. The signature argument specifies which instance method to invoke. The Signatures section covers the form of the signature argument in more detail. Additional parameters to an object command are converted to Java objects or primitive Java values and passed to the method. It is not possible to invoke static methods via a javaObj handle, use the java::call method instead.

The Conversions section describes the result and possible error conditions of the object command, including the effect of the optional -noconvert flag.

Copyright © 1997-1998 Sun Microsystems, Inc.