com.kenai.jffi
Class Aggregate

java.lang.Object
  extended by com.kenai.jffi.Type
      extended by com.kenai.jffi.Aggregate
Direct Known Subclasses:
Array, Struct, Union

public abstract class Aggregate
extends Type


Field Summary
 
Fields inherited from class com.kenai.jffi.Type
DOUBLE, FLOAT, LONGDOUBLE, POINTER, SCHAR, SINT, SINT16, SINT32, SINT64, SINT8, SLONG, SLONG_LONG, SSHORT, UCHAR, UINT, UINT16, UINT32, UINT64, UINT8, ULONG, ULONG_LONG, USHORT, VOID
 
Constructor Summary
Aggregate(long handle)
           
 
Method Summary
 int alignment()
          Gets the alignment of this type.
 void dispose()
           
protected  void finalize()
           
 int size()
          Gets the size of this type.
 int type()
          Gets the FFI type enum value for this Type
 
Methods inherited from class com.kenai.jffi.Type
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Aggregate

public Aggregate(long handle)
Method Detail

type

public final int type()
Description copied from class: Type
Gets the FFI type enum value for this Type

Specified by:
type in class Type
Returns:
An integer representing the FFI type.

size

public final int size()
Description copied from class: Type
Gets the size of this type.

Specified by:
size in class Type
Returns:
The size of this type, in bytes.

alignment

public final int alignment()
Description copied from class: Type
Gets the alignment of this type.

Specified by:
alignment in class Type
Returns:
The alignment of this type, in bytes.

dispose

public final void dispose()

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable