JsUnit
Project Developer Home doxygen

Public Member Functions | List of all members
Function Class Reference

Standard ECMA class. More...

Collaboration diagram for Function:
Collaboration graph

Public Member Functions

void Function ()
 
void fulfills ()
 Ensures that a function fulfills an interface. More...
 
void glue (void scope)
 Glue functions to a JavaScript class as member functions. More...
 

Detailed Description

Standard ECMA class.

Constructor & Destructor Documentation

void Function::Function ( )

Member Function Documentation

void Function::fulfills ( )

Ensures that a function fulfills an interface.

Since with ECMA 262 (3rd edition) interfaces are not supported yet, this function will simulate the functionality. The arguments for the functions are all classes that the current class will implement. The function checks whether the current class fulfills the interface of the given classes or not.

Exceptions
TypeErrorIf the current object is not a class or the interface is not a Function object with a prototype.
InterfaceDefinitionErrorIf an interface is not fulfilled or the interface has invalid members.
void Function::glue ( void  scope)

Glue functions to a JavaScript class as member functions.

The method attaches the functions given as arguments to the prototype of the current instance.

Exceptions
InterfaceDefinitionErrorIf the current instance of a given argument is not a Function object with a prototype.

The documentation for this class was generated from the following file:

JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
Generated on Wed Apr 15 2015 02:33:07 for JsUnit by doxygen 1.8.5