All Packages Class Hierarchy This Package Previous Next Index
Class nsjava.internal.TclString
java.lang.Object
|
+----nsjava.internal.TclString
- public class TclString
- extends Object
- implements InternalRep
This class implements the string object type in Tcl.
-
append(TclObject, String)
- Appends a string to a TclObject object.
-
dispose()
-
-
duplicate()
- Returns a dupilcate of the current object.
-
newInstance(String)
- Create a new TclObject that has a string representation with
the given string value.
-
toString()
- Called to query the string representation of the Tcl object.
duplicate
public InternalRep duplicate()
- Returns a dupilcate of the current object.
- Parameters:
- obj - the TclObject that contains this internalRep.
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(String str)
- Create a new TclObject that has a string representation with
the given string value.
append
public static final void append(TclObject tobj,
String string) throws TclException
- Appends a string to a TclObject object. This method is equivalent to
Tcl_AppendToObj() in Tcl 8.0.
- Parameters:
- tobj - the TclObject to append a string to.
- string - the string to append to the object.
- Returns:
- the TclObject whose string value is tobj.toString() + string.
Could be different than tobj if tobj has refCount > 1.
- Throws: TclException
- thrown for usage errors
dispose
public void dispose()
All Packages Class Hierarchy This Package Previous Next Index