|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--TObject | +--TString
Type String:
Class TString
represents character strings. All
string literals in NOOL programs, such as "abc"
, are
implemented as instances of this class.
Field Summary | |
java.lang.String |
string
The caracter string. |
Constructor Summary | |
TString()
Instanciates a new Type String. |
|
TString(java.lang.String[] array)
Instanciates a new Type String. |
Method Summary | |
void |
insert(java.lang.String string,
int position)
Inserts another string into the string. |
java.lang.String[] |
toCharArray()
Returns a char array representation of the string. |
java.lang.String |
toLowerCase()
Returns a copy of the string in lowercase. |
java.lang.String |
toUpperCase()
Returns a copy of the string in uppercase. |
java.lang.String |
trim()
Returns a copy of the string whit the white spaces of both ends removed. |
Methods inherited from class TObject |
clone, Destroy, equals, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String string
Constructor Detail |
public TString()
public TString(java.lang.String[] array)
array
- The string array used to form the string.Method Detail |
public java.lang.String[] toCharArray()
public java.lang.String toLowerCase()
public java.lang.String toUpperCase()
public java.lang.String trim()
public void insert(java.lang.String string, int position)
string
- The string to insert.position
- The position where to insert the string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |