class Object

Instances of this class are used to inspect Ferite objects

class attributes [NB. Highlighted attributes are static members]
function Object() - The constructor of the "Object" class
function className() - Finds the name of the class of the object associated with this object
function fromData() - Creates an object
function getVariable() - Retrieves a variable from the object associated with this object
function setVariable() - Sets a variable in the object associated with this object
function getObject() - Retrieves a reference to the object that is associated with this object
function getMethod() - Creates a new Function object from a method in this object
function getVariables() - Generates an array of the variables in the object associated with this object
function setVariables() - Set the variables in the object associated with this object
function hasMember() - Determines if an object has a particular member

Functions

function Object Click to go up to the list
The constructor of the "Object" class
Declaration:
    native function Object( object obj )
Description:
Objects of the "Object" class are initialised by passing the object which should be associated with it to the constructor. The instantiation will fail if the argument is not an object, or is the null object.
Parameters:
    Parameter #1: object obj - The object which the new object should be able to inspect

function className Click to go up to the list
Finds the name of the class of the object associated with this object
Declaration:
    native function className( )
Returns:
    The name of the class as a string

static function fromData Click to go up to the list
Creates an object
Declaration:
    static native function fromData( string klass, array data )
Description:
This function provides another way to create a new object. The array is used to set the values of the variables in the object. The key strings in the array give the names of the variables to set the values of. Note that this function does NOT call the object constructor after creating it, so you will usually need to do it yourself after calling Object.fromData().
Parameters:
    Parameter #1: string class - The name of the class of the object to create
    Parameter #2: array data - The values to set the variables in the object to

function getVariable Click to go up to the list
Retrieves a variable from the object associated with this object
Declaration:
    native function getVariable( string name )
Description:
This function retrieves a variable from the object from the object associated with this "Object" object. If no variable exists in the object with the specified name, an exception is thrown.
Parameters:
    Parameter #1: string name - The name of the variable to get
Returns:
    The variable

function setVariable Click to go up to the list
Sets a variable in the object associated with this object
Declaration:
    native function setVariable( string name, void value )
Description:
This function can be used to set the value of a variable in an object. If no variable of the specified name exists or if it is of a different type to the specified value, an exception is thrown.
Parameters:
    Parameter #1: string name - The name of the variable to set the value of
    Parameter #2: void value - The value to set the variable to
Returns:
    A copy of the variable which was just assigned

function getObject Click to go up to the list
Retrieves a reference to the object that is associated with this object
Declaration:
    native function getObject( )
Returns:
    A reference to the object

function getMethod Click to go up to the list
Creates a new Function object from a method in this object
Declaration:
    function getMethod( string name )
Description:
This function creates a new Function object which is associated with the specified method of the object associated with this "Object" object.
Parameters:
    Parameter #1: string name - The name of the method
Returns:
    A new Function object, or null on failure

function getVariables Click to go up to the list
Generates an array of the variables in the object associated with this object
Declaration:
    native function getVariables( )
Description:
This function creates an array of the instance (non-static) variables which are contained in the object associated with this "Object" object. The key strings of the array items are the names of the variables. Note that the items in the returned array are copies of the object variables, not references to them (unless they are objects).
Returns:
    An array of the variables in this object

function setVariables Click to go up to the list
Set the variables in the object associated with this object
Declaration:
    native function setVars( array vars )
Description:
This function sets the variables within the object with this "Object" object to the values in the specified array. The key strings of the items in the array are used the match the array items to the object variables. Note that the type of the object variable and the array item must match.
Parameters:
    Parameter #1: array vars - The array of variables to set within the object

static function hasMember Click to go up to the list
Determines if an object has a particular member
Declaration:
    static native function hasMember( object o, string member )
Description:
This function checks whether there is a variable or function with the specified name within the specified object. Note that it does not provide any way to tell whether the member is a function or a variable.
Parameters:
    Parameter #1: object o - The object
    Parameter #2: string member - The name of the member to look for
Returns:
    True if a member exists with that name, otherwise false

Automatically generated at 8:45pm, Wednesday 08 January 2003 by feritedoc.