de.intarsys.nativec.type
Class NativeGenericStruct

java.lang.Object
  extended by de.intarsys.nativec.type.NativeObject
      extended by de.intarsys.nativec.type.NativeStruct
          extended by 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
protected NativeGenericStruct(NativeStructType type)
           
protected NativeGenericStruct(NativeStructType type, INativeHandle handle)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 interface INativeObject
Specified by:
getNativeType in class NativeObject
Returns:
The meta information and behavior for the NativeObject.

getStructType

public NativeStructType getStructType()
Overrides:
getStructType in class NativeStruct

setNativeType

public void setNativeType(NativeStructType type)