|
|||||||||
| 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.NativeStruct
public abstract class NativeStruct
An abstract superclass for the implementation of structured
NativeObject instances. These objects are built using named slots
with other INativeObject instances (as opposed to NativeArray,
using indexed slots).
| Field Summary | |
|---|---|
static NativeStructType |
META
The meta class instance |
protected INativeObject[] |
values
|
| 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 | |
|---|---|
NativeStruct()
|
|
NativeStruct(INativeHandle handle)
|
|
| Method Summary | |
|---|---|
int |
getByteCount()
The number of bytes occupied by this. |
INativeObject |
getNativeObject(java.lang.String name)
The NativeObject at the named slot name. |
protected StructMember |
getStructField(java.lang.String name)
|
NativeStructType |
getStructType()
|
java.lang.Object |
getValue()
A Java side representation from the memory. |
void |
setValue(java.lang.Object value)
Assign (and marshall to memory) the Java side representation. |
java.lang.String |
toNestedString()
A string for debugging purposes. |
java.lang.String |
toString()
|
| Methods inherited from class de.intarsys.nativec.type.NativeObject |
|---|
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getNativeType, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final NativeStructType META
protected INativeObject[] values
| Constructor Detail |
|---|
public NativeStruct()
public NativeStruct(INativeHandle handle)
| Method Detail |
|---|
public int getByteCount()
NativeObject
getByteCount in class NativeObjectpublic INativeObject getNativeObject(java.lang.String name)
The marshalling is delegated to the StructMember in the StructDeclaration.
name - The name of the slot in the structure.
protected StructMember getStructField(java.lang.String name)
public NativeStructType getStructType()
public java.lang.Object getValue()
INativeObject
INativeObject.public void setValue(java.lang.Object value)
INativeObject
value - The new Java value.public java.lang.String toNestedString()
NativeObject
toNestedString in class NativeObjectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||