#include <tjsloader.h>
The TJSLoader class loads a JavaScript module in server side.
- See also
- TJSModule, TJSInstance
◆ AltJS
◆ TJSLoader() [1/2]
TJSLoader::TJSLoader |
( |
const QString & |
moduleName, |
|
|
AltJS |
alt = Default |
|
) |
| |
◆ TJSLoader() [2/2]
TJSLoader::TJSLoader |
( |
const QString & |
defaultMember, |
|
|
const QString & |
moduleName, |
|
|
AltJS |
alt = Default |
|
) |
| |
◆ absolutePath()
QString TJSLoader::absolutePath |
( |
const QString & |
moduleName, |
|
|
const QDir & |
dir, |
|
|
AltJS |
alt |
|
) |
| const |
|
protected |
◆ compileJsx()
QString TJSLoader::compileJsx |
( |
const QString & |
jsx | ) |
|
|
static |
◆ defaultSearchPaths()
QStringList TJSLoader::defaultSearchPaths |
( |
| ) |
|
|
static |
◆ import() [1/2]
void TJSLoader::import |
( |
const QString & |
defaultMember, |
|
|
const QString & |
moduleName |
|
) |
| |
◆ import() [2/2]
void TJSLoader::import |
( |
const QString & |
moduleName | ) |
|
◆ importTo()
QJSValue TJSLoader::importTo |
( |
TJSModule * |
context, |
|
|
bool |
isMain |
|
) |
| const |
|
protected |
◆ load()
TJSModule * TJSLoader::load |
( |
bool |
reload = false | ) |
|
Loads the JavaScript module and returns the JavaScript context if successful; otherwise returns null pointer.
i.e. var defaultMember = require( moduleName );
◆ loadAsConstructor() [1/2]
TJSInstance TJSLoader::loadAsConstructor |
( |
const QJSValue & |
arg | ) |
const |
◆ loadAsConstructor() [2/2]
TJSInstance TJSLoader::loadAsConstructor |
( |
const QJSValueList & |
args = QJSValueList() | ) |
const |
◆ replaceRequire()
void TJSLoader::replaceRequire |
( |
TJSModule * |
context, |
|
|
QString & |
content, |
|
|
const QDir & |
dir |
|
) |
| const |
|
protected |
◆ search()
QString TJSLoader::search |
( |
const QString & |
moduleName, |
|
|
AltJS |
alt |
|
) |
| const |
|
protected |
◆ setDefaultSearchPaths()
void TJSLoader::setDefaultSearchPaths |
( |
const QStringList & |
paths | ) |
|
|
static |
◆ setSearchPaths()
void TJSLoader::setSearchPaths |
( |
const QStringList & |
paths | ) |
|
◆ TJSModule
The documentation for this class was generated from the following files: