public class CType
extends java.lang.Object
CMetaModel
Modifier and Type | Class and Description |
---|---|
static class |
CType.CKind
Provides information about the kind of data type.
|
Modifier and Type | Field and Description |
---|---|
protected int |
arrayLength
length of array (if type is an array)
|
protected CType.CKind |
kind
Kind of that type.
|
protected CType |
referencedType
This is the type of component in case of an array or the
target type in case of a pointer.
|
protected java.lang.String |
signature
full C signature of that type, e.g.
|
int |
size32
Size on 32bit architecture.
|
int |
size64
Size on 64bit architecture.
|
Constructor and Description |
---|
CType(java.lang.String typesig,
CType.CKind kind) |
CType(java.lang.String typesig,
CType.CKind kind,
int size32,
int size64) |
Modifier and Type | Method and Description |
---|---|
int |
getArrayLength()
In case of a multidimensional array, this will
return the length of the array of the first
dimension.
|
CType.CKind |
getKind() |
CType |
getReferencedType()
In case of a pointer, this will return the type of
elements, the pointer points to.
|
java.lang.String |
getSignature() |
int |
getTotalNumArrayElems() |
int |
sizeof(int addressWidth)
Returns the overall size of this type considering specifica such as array lengths.
|
protected int arrayLength
protected CType referencedType
protected CType.CKind kind
protected java.lang.String signature
public int size32
public int size64
public CType(java.lang.String typesig, CType.CKind kind)
public CType(java.lang.String typesig, CType.CKind kind, int size32, int size64)
public int getArrayLength()
public CType getReferencedType()
public CType.CKind getKind()
public java.lang.String getSignature()
public int getTotalNumArrayElems()
public int sizeof(int addressWidth)
addressWidth
-