rtconst virtual class std::Field

sys::Obj
  std::Slot
    std::Field

Field is a slot which models the ability to get and set a value.

get

virtual Obj? get(Obj? instance := null)

Get the field for the specified instance. If the field is static, then the instance parameter is ignored. If the getter is non-null, then it is used to get the field.

set

virtual Void set(Obj? instance, Obj? value)

Set the field for the specified instance. If the field is static, then the instance parameter is ignored. If the setter is non-null, then it is used to set the field.

signature

virtual override Str signature()

trap

virtual override Obj? trap(Str name, List<Obj?>? args := null)

type

Type type()

Type stored by the field.