|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeReference
public class NativeReference
An object representing a reference to another object ("pointer").
Field Summary | |
---|---|
static NativeReferenceType |
META
The meta class instance |
Fields inherited from class de.intarsys.nativec.type.NativeObject |
---|
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT |
Constructor Summary | |
---|---|
protected |
NativeReference(NativeReferenceType type)
|
protected |
NativeReference(NativeReferenceType type,
INativeHandle handle)
|
Method Summary | |
---|---|
static NativeReference |
create(INativeType baseType)
|
INativeType |
getBaseType()
|
int |
getByteCount()
The number of bytes occupied by this. |
INativeType |
getNativeType()
The meta information and behavior for the NativeObject. |
java.lang.Object |
getValue()
A Java side representation from the memory. |
void |
setBaseType(INativeType baseType)
|
void |
setValue(java.lang.Object value)
Assign (and marshall to memory) the Java side representation. |
Methods inherited from class de.intarsys.nativec.type.NativeObject |
---|
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final NativeReferenceType META
Constructor Detail |
---|
protected NativeReference(NativeReferenceType type)
protected NativeReference(NativeReferenceType type, INativeHandle handle)
Method Detail |
---|
public static NativeReference create(INativeType baseType)
public INativeType getBaseType()
public int getByteCount()
NativeObject
getByteCount
in class NativeObject
public INativeType getNativeType()
NativeObject
There is exactly one meta instance for all NativeObject instances of a certain type.
getNativeType
in interface INativeObject
getNativeType
in class NativeObject
public java.lang.Object getValue()
INativeObject
INativeObject
.public void setBaseType(INativeType baseType)
public void setValue(java.lang.Object value)
INativeObject
value
- The new Java value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |