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.


Method Index

 o append(TclObject, String)
Appends a string to a TclObject object.
 o dispose()
 o duplicate()
Returns a dupilcate of the current object.
 o newInstance(String)
Create a new TclObject that has a string representation with the given string value.
 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:
obj - the TclObject that contains this internalRep.
 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(String str)
Create a new TclObject that has a string representation with the given string value.

 o 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
 o dispose
 public void dispose()

All Packages  Class Hierarchy  This Package  Previous  Next  Index