CLASS
tcl.lang.TclBoolean -- This class is used to create and read boolean objects from Java code.
IMPLEMENTS
tcl.lang.InternalRep
METHODS
static TclObject newInstance(boolean booleanValue)
static boolean get(Interp interp, TclObject tobj) throws TclException
ARGUMENTS
DESCRIPTION
newInstance
get
EQUIVALENT C FUNCTIONS
SEE ALSO
KEYWORDS

CLASS

tcl.lang.TclBoolean -- This class is used to create and read boolean objects from Java code.

IMPLEMENTS

tcl.lang.InternalRep

METHODS

static TclObject newInstance(boolean booleanValue)

static boolean get(Interp interp, TclObject tobj) throws TclException

ARGUMENTS

boolean booleanValue
New value for internal boolean representation.

Interp interp
If an error occurs while converting an object to be a boolean object, an error message is left in the interpreter's result object unless interp is null.

TclObject tobj
TclObject from which to extract a boolean value. If the internal representation of tobj is not a TclBoolean, the method attempts to convert it to a TclBoolean.

DESCRIPTION

newInstance
The newInstance method creates and returns a new TclObject whose internal representation is the boolean booleanValue.

get
The get method returns an boolean value from the tobj. If an error occurs while converting tobj to be a boolean object, an error message is left in the interp's result object unless interp is null.

EQUIVALENT C FUNCTIONS

Tcl_NewBooleanObj, Tcl_GetBooleanFromObj

SEE ALSO

InternalRep, TclObject, TclList, TclString, TclInteger, TclDouble, ReflectObject

KEYWORDS

internal representation, object, object type, boolean
Copyright © 1996-1998 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.