|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CBuiltinFunction: public CNativeObject { public: CBuiltinFunction( CGlobalObject *pGlobalObject, CNativeObject *pObject, int nIndex, int nLength); ~CBuiltinFunction(); public: CString Class(); XValue Call( CContext &context, const XObject &pThis, const CList &argList); CString TypeOf(); };
The abstract interface to built-in functions.
Classes implementing built-in functions are usually derived from this class.
Each built-in function is associated with an integer selector. Selectors are unique within the property list of each object. Selectors are used by the interpreter to select appropriate implementation procedure for each built-in function.
CValue, CObject, CList, CGlobalObject, CNativeObject
Constructor/Destructor Summary | |
CBuiltinFunction
(CGlobalObject *pGlobalObject, CNativeObject *pObject, int nIndex, int nLength);
����������Constructs the built-in function. |
|
~CBuiltinFunction
();
����������Destroys the built-in function. |
Function Summary | |
CString
|
Class
();
����������Returns the class of this object. |
XValue
|
Call
(CContext &context, const XObject &pThis, const CList &argList);
����������Calls this object as a function. |
CString
|
TypeOf
();
����������Returns a string representing type of this object. |
Constructor/Destructor Detail |
CBuiltinFunction( CGlobalObject *pGlobalObject, CNativeObject *pObject, int nIndex, int nLength);
Constructs the built-in function.
pGlobalObject
- the global objectpObject
- the object which has this
built-in function as a propertynIndex
- the selectornLength
- the value of the property
"length"
of this function (that is, the maximum number of arguments, or
1
if any number of arguments is allowed)~CBuiltinFunction();
Destroys the built-in function.
Function Detail |
CString Class();
Returns the class of this object.
This function corresponds to the internal
[[Class]]
property.
XValue Call( CContext &context, const XObject &pThis, const CList &argList);
Calls this object as a function.
This function corresponds to the internal
[[Call]]
property.
context
- the evaluation contextpThis
- the object to be used as value of
this
during the function callargList
- the list of argument valuesCString TypeOf();
Returns a string representing type of this object.
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |