public class TclString extends java.lang.Object implements InternalRep
Modifier and Type | Method and Description |
---|---|
static void |
append(TclObject tobj,
char[] charArr,
int offset,
int length)
Appends an array of characters to a TclObject Object.
|
static void |
append(TclObject tobj,
java.lang.String string)
Appends a string to a TclObject object.
|
void |
dispose()
Implement this no-op for the InternalRep interface.
|
InternalRep |
duplicate()
Returns a dupilcate of the current object.
|
static void |
empty(TclObject tobj)
This procedure clears out an existing TclObject so
that it has a string representation of "".
|
static TclObject |
newInstance(java.lang.String str)
Create a new TclObject that has a string representation with
the given string value.
|
static TclObject |
newInstance(java.lang.StringBuffer sb)
Create a new TclObject that makes use of the given StringBuffer
object.
|
java.lang.String |
toString()
Called to query the string representation of the Tcl object.
|
public InternalRep duplicate()
duplicate
in interface InternalRep
obj
- the TclObject that contains this internalRep.public void dispose()
dispose
in interface InternalRep
public java.lang.String toString()
toString
in class java.lang.Object
public static TclObject newInstance(java.lang.String str)
public static TclObject newInstance(java.lang.StringBuffer sb)
public static final void append(TclObject tobj, java.lang.String string)
tobj
- the TclObject to append a string to.string
- the string to append to the object.public static final void append(TclObject tobj, char[] charArr, int offset, int length)
tobj
- the TclObject to append a string to.charArr
- array of characters.offset
- index of first character to append.length
- number of characters to append.public static void empty(TclObject tobj)