All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class nsjava.internal.TclBoolean

java.lang.Object
   |
   +----nsjava.internal.TclBoolean

public class TclBoolean
extends Object
implements InternalRep
This class implements the boolean object type in Tcl.


Method Index

 o dispose()
 o duplicate()
Returns a dupilcate of the current object.
 o get(TclObject)
Returns the value of the object as an boolean.
 o newInstance(boolean)
Creates a new instance of a TclObject with a TclBoolean internal representation.
 o toString()
Called to query the string representation of the Tcl object.

Methods

 o duplicate
 public InternalRep duplicate()
Returns a dupilcate of the current object.

Parameters:
tobj - the TclObject that contains this ObjType.
 o toString
 public String toString()
Called to query the string representation of the Tcl object. This method is called only by TclObject.toString() when TclObject.stringRep is null.

Returns:
the string representation of the Tcl object.
Overrides:
toString in class Object
 o newInstance
 public static TclObject newInstance(boolean b)
Creates a new instance of a TclObject with a TclBoolean internal representation.

Parameters:
b - initial value of the boolean object.
Returns:
the TclObject with the given boolean value.
 o get
 public static boolean get(TclObject tobj) throws TclException
Returns the value of the object as an boolean.

Parameters:
interp - current interpreter.
tobj - the TclObject to use as an boolean.
Returns:
the boolean value of the object.
Throws: TclException
if the object cannot be converted into a boolean.
 o dispose
 public void dispose()

All Packages  Class Hierarchy  This Package  Previous  Next  Index