public class TclBoolean extends java.lang.Object implements InternalRep
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Implement this no-op for the InternalRep interface.
|
InternalRep |
duplicate()
Returns a dupilcate of the current object.
|
static boolean |
get(Interp interp,
TclObject tobj)
Returns the value of the object as an boolean.
|
static TclObject |
newInstance(boolean b)
Creates a new instance of a TclObject with a TclBoolean internal
representation.
|
java.lang.String |
toString()
Called to query the string representation of the Tcl object.
|
public InternalRep duplicate()
duplicate in interface InternalReppublic void dispose()
dispose in interface InternalReppublic java.lang.String toString()
toString in class java.lang.Objectpublic static TclObject newInstance(boolean b)
b - initial value of the boolean object.public static boolean get(Interp interp, TclObject tobj) throws TclException
interp - current interpreter.tobj - the TclObject to use as an boolean.TclException - if the object cannot be converted into a
boolean.