| java.lang.Object tcl.lang.TclString
Method Summary | |
final public static void | append(TclObject tobj, String string) Appends a string to a TclObject object. | final public static void | append(TclObject tobj, char[] charArr, int offset, int length) Appends an array of characters to a TclObject Object. | final static void | append(TclObject tobj, TclObject tobj2) Appends a TclObject to a TclObject. | final static void | append(TclObject tobj, TclObject[] objv, int startIdx, int endIdx) Appends the String values of multiple TclObject's to a
TclObject. | public void | dispose() Implement this no-op for the InternalRep interface. | public InternalRep | duplicate() Returns a dupilcate of the current object. | public static void | empty(TclObject tobj) This procedure clears out an existing TclObject so
that it has a string representation of "". | public static TclObject | newInstance(String str) Create a new TclObject that has a string representation with
the given string value. | public static TclObject | newInstance(StringBuffer sb) Create a new TclObject that makes use of the given StringBuffer
object. | final static TclObject | newInstance(Object o) | final static TclObject | newInstance(char c) Create a TclObject with an internal TclString representation
whose initial value is a string with the single character. | public String | toString() Called to query the string representation of the Tcl object. |
append | final public static void append(TclObject tobj, String string)(Code) | | 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. Parameters: string - the string to append to the object. |
append | final public static void append(TclObject tobj, char[] charArr, int offset, int length)(Code) | | Appends an array of characters to a TclObject Object.
Tcl_AppendUnicodeToObj() in Tcl 8.0.
Parameters: tobj - the TclObject to append a string to. Parameters: charArr - array of characters. Parameters: offset - index of first character to append. Parameters: length - number of characters to append. |
append | final static void append(TclObject tobj, TclObject tobj2)(Code) | | Appends a TclObject to a TclObject. This method is equivalent to
Tcl_AppendToObj() in Tcl 8.0.
The type of the TclObject will be a TclString that contains the
string value:
tobj.toString() + tobj2.toString();
|
append | final static void append(TclObject tobj, TclObject[] objv, int startIdx, int endIdx)(Code) | | Appends the String values of multiple TclObject's to a
TclObject. This is an optimized implementation that
will measure the length of each string and expand the
capacity as needed to limit reallocations.
Parameters: tobj - the TclObject to append elements to. Parameters: objv - array containing elements to append. Parameters: startIdx - index to start appending values from Parameters: endIdx - index to stop appending values at |
dispose | public void dispose()(Code) | | Implement this no-op for the InternalRep interface.
|
duplicate | public InternalRep duplicate()(Code) | | Returns a dupilcate of the current object.
Parameters: obj - the TclObject that contains this internalRep. |
empty | public static void empty(TclObject tobj)(Code) | | This procedure clears out an existing TclObject so
that it has a string representation of "". This
method is used only in the IO layer.
|
newInstance | public static TclObject newInstance(String str)(Code) | | Create a new TclObject that has a string representation with
the given string value.
|
newInstance | public static TclObject newInstance(StringBuffer sb)(Code) | | Create a new TclObject that makes use of the given StringBuffer
object. The passed in StringBuffer should not be modified after
it is passed to this method.
|
newInstance | final static TclObject newInstance(char c)(Code) | | Create a TclObject with an internal TclString representation
whose initial value is a string with the single character.
Parameters: c - initial value of the string. |
toString | public String toString()(Code) | | Called to query the string representation of the Tcl object. This
method is called only by TclObject.toString() when
TclObject.stringRep is null.
the string representation of the Tcl object. |
|
|