|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object au.com.swz.swttocom.swt.types.pointer.StringPointer
public class StringPointer
A pointer for use with the java.lang.String Java type.
Constructor Summary | |
---|---|
StringPointer()
Constructs a new pointer for which no memotry is allocated. |
|
StringPointer(int address)
Constructs a new pointer that will use the specified memory address to store data. |
|
StringPointer(java.lang.String initString)
Constructs a new string pointer that will point to the specified String. |
Method Summary | |
---|---|
void |
dispose()
Releases the memory (if any) allocated by this pointer. |
protected void |
finalize()
|
int |
getAddress()
Returns the memory address for this pointer. |
java.lang.String |
getValue()
Returns the value of this pointer. |
void |
setAddress(int address)
Sets the memory address for this pointer. |
void |
setValue(java.lang.String stringData)
Sets the value of this pointer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringPointer(java.lang.String initString)
initString
- the string to which to point.public StringPointer()
public StringPointer(int address)
address
- the memory address to use for storing data.Method Detail |
---|
public java.lang.String getValue()
public void setValue(java.lang.String stringData)
stringData
- the new value for this pointer.public int getAddress()
getAddress
in interface IPointer
public void setAddress(int address)
setAddress
in interface IPointer
address
- the new memory address for this pointer or 0 to clear
the memory address of this pointer.public void dispose()
dispose
in interface IDisposeableResource
dispose
in interface IPointer
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |