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 protectedNativeGenericStruct(NativeStructType type)protectedNativeGenericStruct(NativeStructType type, INativeHandle handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INativeTypegetNativeType()The meta information and behavior for the NativeObject.NativeStructTypegetStructType()voidsetNativeType(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:NativeObjectThe meta information and behavior for the NativeObject.There is exactly one meta instance for all NativeObject instances of a certain type.
- Specified by:
getNativeTypein interfaceINativeObject- Specified by:
getNativeTypein classNativeObject- Returns:
- The meta information and behavior for the NativeObject.
-
getStructType
public NativeStructType getStructType()
- Overrides:
getStructTypein classNativeStruct
-
setNativeType
public void setNativeType(NativeStructType type)
-
-