JsUnit |
Standard ECMA class. More...
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... | |
Standard ECMA class.
void Function::Function | ( | ) |
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.
TypeError | If the current object is not a class or the interface is not a Function object with a prototype. |
InterfaceDefinitionError | If 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.
InterfaceDefinitionError | If the current instance of a given argument is not a Function object with a prototype. |
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
|