Kross
#include <script.h>
Public Slots | |
Action * | action () const |
virtual QVariant | callFunction (const QString &name, const QVariantList &args=QVariantList())=0 |
virtual QVariant | evaluate (const QByteArray &code)=0 |
virtual void | execute ()=0 |
virtual QStringList | functionNames ()=0 |
Interpreter * | interpreter () const |
Public Member Functions | |
Script (Interpreter *interpreter, Action *action) | |
virtual | ~Script () |
Public Member Functions inherited from Kross::ErrorInterface | |
ErrorInterface () | |
void | clearError () |
long | errorLineNo () const |
const QString | errorMessage () const |
const QString | errorTrace () const |
bool | hadError () const |
void | setError (const QString &errormessage, const QString &tracemessage=QString(), long lineno=-1) |
void | setError (ErrorInterface *error) |
Detailed Description
Base class for interpreter dependent functionality each script provides.
Each Action holds a pointer to a class that implements the Script functionality for the defined Interpreter .
Definition at line 43 of file core/script.h.
Constructor & Destructor Documentation
Script::Script | ( | Interpreter * | interpreter, |
Action * | action | ||
) |
Constructor.
- Parameters
-
interpreter The Interpreter instance that was used to created this Script instance. Action The Action instance this script is associated with.
Definition at line 41 of file core/script.cpp.
|
virtual |
Destructor.
Definition at line 51 of file core/script.cpp.
Member Function Documentation
|
slot |
Definition at line 61 of file core/script.cpp.
|
pure virtualslot |
Call a function in the script.
- Parameters
-
name The name of the function which should be called. args The optional list of arguments.
Implemented in Kross::KjsScript.
|
pure virtualslot |
Evaluate some scripting code.
- Parameters
-
code The scripting code to evaluate.
- Returns
- The return value of the evaluation.
Implemented in Kross::KjsScript.
|
pure virtualslot |
Execute the script.
Implemented in Kross::KjsScript.
|
pure virtualslot |
- Returns
- the list of functionnames.
Implemented in Kross::KjsScript.
|
slot |
- Returns
- the Interpreter instance that was used to created this Script .
Definition at line 56 of file core/script.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.