|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CInterpreter: public CInterface { public: CInterpreter(); ~CInterpreter(); public: XGlobalObject GetGlobalObject(); void SetErrorHandler(CErrorHandler *pErrorHandler); void SetProgramName(const CString &strProgramName); void SetLineNumber(int nLineNumber); CCompletion Evaluate(IUnicodeStream *pStream); CCompletion Evaluate(const CString &strSource); };
The ECMAScript interpreter.
CCompletion, CGlobalObject, CErrorHandler
Constructor/Destructor Summary | |
CInterpreter
();
����������Constructs the interpreter. |
|
~CInterpreter
();
����������Destroys the interpreter. |
Function Summary | |
XGlobalObject
|
GetGlobalObject
();
����������Returns the global object associated with this interpreter. |
void
|
SetErrorHandler
(CErrorHandler *pErrorHandler);
����������Sets an error handler to be used by this interpreter. |
void
|
SetProgramName
(const CString &strProgramName);
����������Sets a name of the program. |
void
|
SetLineNumber
(int nLineNumber);
����������Sets a number of the starting line of the program. |
CCompletion
|
Evaluate
(IUnicodeStream *pStream);
����������Evaluates a program obtained from the given source stream. |
CCompletion
|
Evaluate
(const CString &strSource);
����������Evaluates a program obtained from the given source string. |
Constructor/Destructor Detail |
CInterpreter();
Constructs the interpreter.
~CInterpreter();
Destroys the interpreter.
Function Detail |
XGlobalObject GetGlobalObject();
Returns the global object associated with this interpreter.
void SetErrorHandler(CErrorHandler *pErrorHandler);
Sets an error handler to be used by this interpreter.
pErrorHandler
- the error handlervoid SetProgramName(const CString &strProgramName);
Sets a name of the program.
The name of the program is used for diagnostic purposes.
strProgramName
- the name of the programvoid SetLineNumber(int nLineNumber);
Sets a number of the starting line of the program.
The number of the starting line of the program is used for diagnostic purposes.
nLineNumber
- the number of the starting line of the programCCompletion Evaluate(IUnicodeStream *pStream);
Evaluates a program obtained from the given source stream.
pStream
- the source stream for the programCCompletion Evaluate(const CString &strSource);
Evaluates a program obtained from the given source string.
strSource
- the string containing
the source text for the program
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |