Package de.intarsys.nativec.type
Class NativeGenericStruct
- java.lang.Object
-
- de.intarsys.nativec.type.NativeObject
-
- de.intarsys.nativec.type.NativeStruct
-
- de.intarsys.nativec.type.NativeGenericStruct
-
- All Implemented Interfaces:
INativeObject
public class NativeGenericStruct extends NativeStruct
The generic struct may change its type at runtime.
-
-
Field Summary
-
Fields inherited from class de.intarsys.nativec.type.NativeStruct
META, 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
Constructors Modifier Constructor Description protected
NativeGenericStruct(NativeStructType type)
protected
NativeGenericStruct(NativeStructType type, INativeHandle handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INativeType
getNativeType()
The meta information and behavior for the NativeObject.NativeStructType
getStructType()
void
setNativeType(NativeStructType type)
-
Methods inherited from class de.intarsys.nativec.type.NativeStruct
getByteCount, getNativeObject, getStructField, getValue, setValue, toNestedString, toString
-
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
-
-
-
-
Constructor Detail
-
NativeGenericStruct
protected NativeGenericStruct(NativeStructType type)
-
NativeGenericStruct
protected NativeGenericStruct(NativeStructType type, INativeHandle handle)
-
-
Method Detail
-
getNativeType
public INativeType getNativeType()
Description copied from class:NativeObject
The meta information and behavior for the NativeObject.There is exactly one meta instance for all NativeObject instances of a certain type.
- Specified by:
getNativeType
in interfaceINativeObject
- Specified by:
getNativeType
in classNativeObject
- Returns:
- The meta information and behavior for the NativeObject.
-
getStructType
public NativeStructType getStructType()
- Overrides:
getStructType
in classNativeStruct
-
setNativeType
public void setNativeType(NativeStructType type)
-
-