|
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.StructDeclaration
public class StructDeclaration
The internal structure definition of a type that is made up of named slots containing other types. The StructDeclaration exists once per type.
Constructor Summary | |
---|---|
StructDeclaration()
Create a new StructDeclaration |
Method Summary | |
---|---|
StructMember |
declare(String name,
INativeType declaration)
Declare a new member for the struct. |
int |
getByteSize()
The total size of the StructDeclaration. |
StructMember |
getField(String name)
|
List |
getFields()
The collection of StructMember instances in declaration order. |
int |
getFieldsSize()
|
INativeObject |
getNativeObject(NativeStruct struct,
String name)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StructDeclaration()
Method Detail |
---|
public StructMember declare(String name, INativeType declaration)
name
- The name of the new member slot.declaration
- The type declaration for the slotpublic int getByteSize()
public StructMember getField(String name)
public List getFields()
public int getFieldsSize()
public INativeObject getNativeObject(NativeStruct struct, String name)
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 |