intarsys nativeC library

de.intarsys.nativec.type
Class NativeStructType

java.lang.Object
  extended by de.intarsys.nativec.type.NativeType
      extended by de.intarsys.nativec.type.NativeStructType
All Implemented Interfaces:
INativeType

public class NativeStructType
extends NativeType

The meta class implementation


Method Summary
 StructMember declare(String name, INativeType declaration)
          Declare a new member for the struct.
 int getByteBoundary()
           
 int getByteCount()
          The size of the type in c memory.
 int getByteSize()
          The total size of the StructDeclaration.
 StructMember getField(String name)
           
 List<StructMember> getFields()
          The collection of StructMember instances in declaration order.
 int getFieldsSize()
           
 INativeObject getNativeObject(NativeStruct struct, String name)
           
 int getPacking()
           
 void setPacking(int pPacking)
           
 String toString()
           
 
Methods inherited from class de.intarsys.nativec.type.NativeType
Array, createNative, createNative, getPreferredBoundary, lookup, Ref, register
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

declare

public StructMember declare(String name,
                            INativeType declaration)
Declare a new member for the struct.

Parameters:
name - The name of the new member slot.
declaration - The type declaration for the slot

getByteBoundary

public int getByteBoundary()

getByteSize

public int getByteSize()
The total size of the StructDeclaration.

Returns:
The total size of the StructDeclaration.

getField

public StructMember getField(String name)

getFields

public List<StructMember> getFields()
The collection of StructMember instances in declaration order.

Returns:
The collection of StructMember instances in declaration order.

getFieldsSize

public int getFieldsSize()

getNativeObject

public INativeObject getNativeObject(NativeStruct struct,
                                     String name)

getPacking

public int getPacking()

getByteCount

public int getByteCount()
Description copied from interface: INativeType
The size of the type in c memory.

Specified by:
getByteCount in interface INativeType
Overrides:
getByteCount in class NativeType
Returns:
The size of the type in c memory.

setPacking

public void setPacking(int pPacking)

toString

public String toString()
Overrides:
toString in class Object

intarsys nativeC library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.