|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.vajhoej.record.StructInfo
public class StructInfo
Class StructInfo contains information about a native struct needed for reading and/or writing.
| Constructor Summary | |
|---|---|
StructInfo(Endian endianess,
Alignment alignment,
boolean endpad,
java.util.List<FieldInfo> fields,
java.lang.Class<?> clz)
Create instance of StructInfo. |
|
| Method Summary | |
|---|---|
static StructInfo |
analyze(java.lang.Class<?> clz)
Analyze class. |
Alignment |
getAlignment()
Get Alignment. |
Endian |
getEndianess()
Get endianess. |
boolean |
getEndpad()
Get pad at end. |
java.util.List<FieldInfo> |
getFields()
Get fields. |
int |
getLength()
Get length of fixed length parts of struct. |
boolean |
isFixedLength()
Is this a fixed length struct. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructInfo(Endian endianess,
Alignment alignment,
boolean endpad,
java.util.List<FieldInfo> fields,
java.lang.Class<?> clz)
throws RecordException
endianess - byte order for all fieldsalignment - alignment for all fieldsendpad - pad at endfields - array of FieldInfo describing all fieldsclz - class implementing struct
RecordException - if error calculating length information| Method Detail |
|---|
public Endian getEndianess()
public Alignment getAlignment()
public boolean getEndpad()
public java.util.List<FieldInfo> getFields()
public boolean isFixedLength()
public int getLength()
public static StructInfo analyze(java.lang.Class<?> clz)
throws RecordException
clz - class to analyze
RecordException - if error calculation length information
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||