class KJScript
|
ECMAScript interpreter. More... |
|
|
Public Methods
Public Static Methods
- static KJScript * current ()
- static KJS::KJSError * error ()
- static void setError (KJS::KJSError *e)
- static KJS::KJSContext * context ()
- static void setContext (KJS::KJSContext *c)
- static KJS::KJSGlobal * global ()
- static void setGlobal (KJS::KJSGlobal *g)
- static KJS::KJSLexer * lexer ()
- static void setLexer (KJS::KJSLexer *l)
Detailed Description
This library implements ECMAScript. Currently its main aim is to add
JavaScript support to KHTMLWidget.
Create a new ECMAScript interpreter. You can later ask it to interprete
code by pass it via evaluate.
Parameters:
w | is pointing to the KHTMLWidget you wish the script to operate on.
|
Destructor
bool evaluate (const char *code)
|
Asks the interpreter to evaluate a piece of code. If called more than
once the state (global variables, functions etc.) will be preserved
between each call.
Parameters:
code | is a string containing the code to be executed.
|
Same as above. Only differing in the arguments accepted.
KJS::UnicodeChar is a data type compatible to XChar2b and QChar.
Parameters:
code | is an Unicode string containing the code to be executed.
|
length | of the string.
|
bool useModule (const char *module, void *arg = 0L)
|
Load and initialize an extension module.
Parameters:
module | is the name of the module. If an absolute path is passed
the directories specified in /etc/od.so.conf and LD_LIBRARY_PATH will
be searched. If neither an absolute path nor an extension is given
.la will be appended by default.
|
An | optional argument to initialize the module.
|
Generated by: root@tantive.terraplex.com on Sun Feb 27 17:39:38 2000, using kdoc 2.0a33. |