sys::Obj sys::Type
public const class Type
Type models the meta-data of a Component including its virtual method tables and slot definitions.
public const Type base
Reference to the base class type or null if Component itself.
public static const define int boolId
public static const define int bufId
public static const define int byteId
public static const define int doubleId
public static const define int errorId
public static const define int floatId
public const byte id
Unique id within this type's kit; index into kit.types.
public static const define int intId
public const Kit kit
Reference to the Kit which contains this type.
public static const define int longId
public static const define int maxPrimitiveId
public const Str name
Simple name string of this type which unique within the kit.
public static const define int shortId
public const short sizeof
Number of bytes in memory an instance of this type requires.
public const inline Slot[] slots
The list of this type's reflective slots (properties and actions) including inherited slots.
public const byte slotsLen
The number of slots in the slots array.
public static const define int voidId
public Slot findSlot(Str name)
Find a slot by its simple name within this Type or return null if not found.
public bool is(Type t)
Return if this type is or extends from the specified type.
public bool isPrimitive()
Return if this one of the primitive types.
public Slot slot(int id)
Get the slot for the specified id or return null if out of range.