|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttcl.lang.TclString
public class TclString
Method Summary | |
---|---|
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,
String string)
Appends a string to a TclObject object. |
static void |
append(TclObject tobj,
TclObject tobj2)
Appends a TclObject to a TclObject. |
static void |
append(TclObject tobj,
TclObject[] objv,
int startIdx,
int endIdx)
Appends the String values of multiple TclObject's to a TclObject. |
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 "". |
StringBuffer |
getSbuf()
Return the internal StringBuffer. |
static TclObject |
newInstance(char c)
Create a TclObject with an internal TclString representation whose initial value is a string with the single character. |
static TclObject |
newInstance(Object o)
|
static TclObject |
newInstance(String str)
Create a new TclObject that has a string representation with the given string value. |
static TclObject |
newInstance(StringBuffer sb)
Create a new TclObject that makes use of the given StringBuffer object. |
String |
toString()
Called to query the string representation of the Tcl object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public InternalRep duplicate()
duplicate
in interface InternalRep
public StringBuffer getSbuf()
public void dispose()
dispose
in interface InternalRep
public String toString()
toString
in class Object
public static TclObject newInstance(String str)
public static TclObject newInstance(StringBuffer sb)
public static final TclObject newInstance(Object o)
public static final TclObject newInstance(char c)
c
- initial value of the string.public static final void append(TclObject tobj, 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 final void append(TclObject tobj, TclObject tobj2)
public static final void append(TclObject tobj, TclObject[] objv, int startIdx, int endIdx)
tobj
- the TclObject to append elements to.objv
- array containing elements to append.startIdx
- index to start appending values fromendIdx
- index to stop appending values atpublic static void empty(TclObject tobj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |