Companion

object Companion

Functions

Link copied to clipboard
fun createUninitializedObject(variant: ObjectLayoutVariant): AvailObject

Create a mutable object using the provided ObjectLayoutVariant, but without initializing its fields. The caller is responsible for initializing the fields before use.

Link copied to clipboard
fun getField(self: AvailObject, slotIndex: Int): AvailObject

Extract the field value at the specified slot index.

Link copied to clipboard
fun objectFromMap(map: A_Map): AvailObject

Construct an object with attribute keys and values taken from the provided A_Map.

Link copied to clipboard
fun objectFromTuple(tuple: A_Tuple): AvailObject

Construct an object from the specified tuple of field assignments.

Link copied to clipboard
fun setField(    self: AvailObject,     slotIndex: Int,     value: A_BasicObject): AvailObject

Update the field value at the specified slot index of the mutable object.

Link copied to clipboard
fun staticObjectVariantId(anObject: AvailObject): Int

Produce the given object's ObjectLayoutVariant's variantId.

Properties

Link copied to clipboard
var createUninitializedObjectMethod: CheckedMethod

Access the createUninitializedObject static method.

Link copied to clipboard
val objectFromMapMethod: CheckedMethod
Link copied to clipboard
var setFieldMethod: CheckedMethod

Access the setField method.

Link copied to clipboard