lib
Kross::Api::Script Class Reference
#include <script.h>
Inheritance diagram for Kross::Api::Script:

Detailed Description
Base class for interpreter dependend functionality each script provides.Each ScriptContainer holds a pointer to a class that implements the Script functionality for the defined Interpreter .
Definition at line 45 of file script.h.
Public Member Functions | |
Script (Interpreter *const interpreter, ScriptContainer *const scriptcontainer) | |
virtual | ~Script () |
bool | hadException () |
Exception::Ptr | getException () |
void | setException (Exception::Ptr e) |
void | clearException () |
virtual Kross::Api::Object::Ptr | execute ()=0 |
virtual const QStringList & | getFunctionNames ()=0 |
virtual Kross::Api::Object::Ptr | callFunction (const QString &name, Kross::Api::List::Ptr args)=0 |
virtual const QStringList & | getClassNames ()=0 |
virtual Kross::Api::Object::Ptr | classInstance (const QString &name)=0 |
Protected Attributes | |
Interpreter *const | m_interpreter |
ScriptContainer *const | m_scriptcontainer |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 29 of file script.cpp. |
|
Destructor.
Definition at line 36 of file script.cpp. |
Member Function Documentation
|
Call a function.
Implemented in Kross::Python::PythonScript, and Kross::Ruby::RubyScript. |
|
Create and return a new class instance.
Implemented in Kross::Python::PythonScript, and Kross::Ruby::RubyScript. |
|
Clear previous exceptions. If called hadException() will return false again. Definition at line 55 of file script.cpp. |
|
Execute the script.
Implemented in Kross::Python::PythonScript, and Kross::Ruby::RubyScript. |
|
Implemented in Kross::Python::PythonScript, and Kross::Ruby::RubyScript. |
|
Definition at line 45 of file script.cpp. |
|
Implemented in Kross::Python::PythonScript, and Kross::Ruby::RubyScript. |
|
Definition at line 40 of file script.cpp. |
|
Set a new exception this script throwed.
Definition at line 50 of file script.cpp. |
Member Data Documentation
|
The Interpreter used to create this Script instance.
|
|
The ScriptContainer associated with this Script.
|
The documentation for this class was generated from the following files: