TclBoolean(3)

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

EXTENDS
tcl.lang.InternalRep

METHODS

static TclObject newInstance(boolean booleanValue)

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

ARGUMENTS
New value for internal boolean representation. 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 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