|
intarsys nativeC library | |||||||||
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 |
Fields inherited from class de.intarsys.nativec.type.NativeObject |
---|
DEBUG, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_SHORT |
Constructor Summary | |
---|---|
NativeStruct()
|
|
NativeStruct(INativeHandle handle)
|
Method Summary | |
---|---|
int |
getByteCount()
The number of bytes occupied by this. |
INativeObject |
getNativeObject(String name)
The NativeObject at the named slot name. |
NativeStructType |
getStructType()
|
Object |
getValue()
A Java side representation from the memory. |
void |
setValue(Object value)
Assign (and marshall to memory) the Java side representation. |
String |
toNestedString()
A string for debugging purposes. |
String |
toString()
|
Methods inherited from class de.intarsys.nativec.type.NativeObject |
---|
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final NativeStructType META
Constructor Detail |
---|
public NativeStruct()
public NativeStruct(INativeHandle handle)
Method Detail |
---|
public int getByteCount()
NativeObject
getByteCount
in class NativeObject
public INativeObject getNativeObject(String name)
The marshalling is delegated to the StructMember in the StructDeclaration.
name
- The name of the slot in the structure.
public NativeStructType getStructType()
public Object getValue()
INativeObject
INativeObject
.public void setValue(Object value)
INativeObject
value
- The new Java value.public String toNestedString()
NativeObject
toNestedString
in class NativeObject
public String toString()
toString
in class Object
|
intarsys nativeC library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |