Sedona

sys::Type


sys::Obj
  sys::Type

public const class Type

Type models the meta-data of a Component including its virtual method tables and slot definitions.


base

public const Type base

Reference to the base class type or null if Component itself.

boolId

public static const define int boolId

bufId

public static const define int bufId

byteId

public static const define int byteId

doubleId

public static const define int doubleId

errorId

public static const define int errorId

floatId

public static const define int floatId

id

public const byte id

Unique id within this type's kit; index into kit.types.

intId

public static const define int intId

kit

public const Kit kit

Reference to the Kit which contains this type.

longId

public static const define int longId

maxPrimitiveId

public static const define int maxPrimitiveId

name

public const Str name

Simple name string of this type which unique within the kit.

shortId

public static const define int shortId

sizeof

public const short sizeof

Number of bytes in memory an instance of this type requires.

slots

public const inline Slot[] slots

The list of this type's reflective slots (properties and actions) including inherited slots.

slotsLen

public const byte slotsLen

The number of slots in the slots array.

voidId

public static const define int voidId

findSlot

public Slot findSlot(Str name)

Find a slot by its simple name within this Type or return null if not found.

is

public bool is(Type t)

Return if this type is or extends from the specified type.

isPrimitive

public bool isPrimitive()

Return if this one of the primitive types.

slot

public Slot slot(int id)

Get the slot for the specified id or return null if out of range.