class Class

Instances of this class are used to inspect Ferite classes

class attributes [NB. Highlighted attributes are static members]
function Class() - The constructor of the "Class" class
function getVariables() - Generates an array containing the static variables in this class
function getFunctions() - Generates an array containing the static functions in this class
function classWithName() - Creates a new Class object
function newObject() - Creates a new instance of the class associated with this object

Functions

function Class Click to go up to the list
The constructor of the "Class" class
Declaration:
    native function Class( void klass )
Description:
Objects of the "Class" class are initialised by passing the class they should be associated with to the constructor. The class name should not be a string (ie. don't quote the class name). The instantiation will fail if the argument is not a class.
Parameters:
    Parameter #1: void klass - The class which the object should be able to inspect

function getVariables Click to go up to the list
Generates an array containing the static variables in this class
Declaration:
    native function getVariables( )
Description:
This function returns an array of the static (class) variables which are contained in the class associated with this object. The array keys are the names of the variables, and the array values are the names of the types of the variables.
Returns:
    An array of the static variables in this class

function getFunctions Click to go up to the list
Generates an array containing the static functions in this class
Declaration:
    native function getFunctions( )
Description:
This function returns an array of the static (class) functions which are contained in the class associated with this object. The array values are strings containing the names of the functions.
Returns:
    An array of the static functions in this class

static function classWithName Click to go up to the list
Creates a new Class object
Declaration:
    static function classWithName( string name )
Description:
This function is an alternate way to generate an object of the "Class" class. It differs from using "new" and passing the class to the constructor in that it takes the name of the class to associate with the object as a string instead of the class itself.
Parameters:
    Parameter #1: string name - The name of the class the object should be able to inspect
Returns:
    A "Class" object or null on failure

function newObject Click to go up to the list
Creates a new instance of the class associated with this object
Declaration:
    static native function newObject( ... )
Description:
This function creates a new object, much like the "new" operator does, which is an instance of the class associated with this instance of the "Class" class.
Parameters:
    Parameter #1: ... The - arguments to pass to the constructor of the class
Returns:
    An instance of the class associated with this object or NULL on failure

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