Sterno Objects

Objects in are instantiated from classes with the new or localNew class-methods. The following instance-fields are defined for each object: The following standard instance-methods are defined for each class: In addition, the following instance-method name has special meaning if its defined:

Instance-method: fimport

        $cmd fimport ?field0? ?field1? ...
Imports fields into a method as local variables. Until other instance-methods, fields are not automatically available within a method. The fimport binds the fields to local variables of the method. If the fields are explicitly specified to the command, only those fields are imported. If no fields are specified, all of the objects fields will be imported.

The variable command can also be used to import fields.


Instance-method: delete

        $cmd delete
Deletes the object.


Instance-method: fget

        $cmd fget name
Returns the value of an instance-field name. The argument name may refer to a scalar or a array element.


Instance-method: fset

        $cmd fset name
Sets the value of an instance-field name to value. The argument name may refer to a scalar or a array element.


Instance-method: fields

        $cmd fields
Get a list of all fields associated with the object. They may not have values yet.


Instance-method: construct

        construct ?arg0? ?arg1? ...
If the construct method is defined, it will be called when the object is created to initialize its fields. All arguments specified to new or localNew class-methods are passed to construct, which should have the appropriate number of arguments defined.