|
TreeFrogFramework 2.10
|
#include <tjsmodule.h>


Public Member Functions | |
| TJSModule (QObject *parent=nullptr) | |
| virtual | ~TJSModule () |
| QJSValue | evaluate (const QString &program, const QString &fileName=QString(), int lineNumber=1) |
| QJSValue | call (const QString &func, const QJSValue &arg) |
| QJSValue | call (const QString &func, const QJSValueList &args=QJSValueList()) |
| TJSInstance | callAsConstructor (const QString &constructorName, const QJSValue &arg) |
| TJSInstance | callAsConstructor (const QString &constructorName, const QJSValueList &args=QJSValueList()) |
| QString | modulePath () const |
| QJSValue | import (const QString &moduleName) |
| QJSValue | import (const QString &defaultMember, const QString &moduleName) |
Friends | |
| class | TJSLoader |
| class | TReactComponent |
The TJSModule class represents a module for evaluating JavaScript code.
| TJSModule::TJSModule | ( | QObject * | parent = nullptr | ) |
|
virtual |
| QJSValue TJSModule::call | ( | const QString & | func, |
| const QJSValue & | arg | ||
| ) |
| QJSValue TJSModule::call | ( | const QString & | func, |
| const QJSValueList & | args = QJSValueList() |
||
| ) |
| TJSInstance TJSModule::callAsConstructor | ( | const QString & | constructorName, |
| const QJSValue & | arg | ||
| ) |
| TJSInstance TJSModule::callAsConstructor | ( | const QString & | constructorName, |
| const QJSValueList & | args = QJSValueList() |
||
| ) |
| QJSValue TJSModule::evaluate | ( | const QString & | program, |
| const QString & | fileName = QString(), |
||
| int | lineNumber = 1 |
||
| ) |
| QJSValue TJSModule::import | ( | const QString & | defaultMember, |
| const QString & | moduleName | ||
| ) |
| QJSValue TJSModule::import | ( | const QString & | moduleName | ) |
|
inline |
|
friend |
|
friend |