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.
-
dispose()
-
-
duplicate()
- Returns a dupilcate of the current object.
-
get(TclObject)
- Returns the value of the object as an boolean.
-
newInstance(boolean)
- Creates a new instance of a TclObject with a TclBoolean internal
representation.
-
toString()
- Called to query the string representation of the Tcl object.
duplicate
public InternalRep duplicate()
- Returns a dupilcate of the current object.
- Parameters:
- tobj - the TclObject that contains this ObjType.
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
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.
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.
dispose
public void dispose()
All Packages Class Hierarchy This Package Previous Next Index