The java::isobject Command


Usage:

java::isobject object

The java::isobject command is used to determine if object is a valid Java object, If the object argument is a Java object java::isobject will return 1. Otherwise, java::isobject returns 0.

Examples:

% set obj [java::new String mystring]
% java::isobject $obj
1
% set obj [java::null]
% java::isobject $obj
1
% set obj "java0x999999" ;# fake java object
% java::isobject $obj
0
Based on TclBlend Copyright © 1997-1998 Sun Microsystems, Inc.
JBlend is Copyright © 2016 - Irrational Numbers.