#include <qsenv.h>
Lista de todos los miembros.
Tipos públicos |
enum | ExecutionMode {
Normal,
Break,
Continue,
ReturnValue,
Throw
} |
Métodos públicos |
| QSEnv (QSEngine *e) |
| ~QSEnv () |
void | init () |
void | clear () |
QSEngine * | engine () const |
void | pushScopeBlock () |
void | pushScope (const QSObject &scope) |
void | popScope () |
void | popScopeBlock () |
ScopeChain | scope () const |
QSObject | currentScope () const |
void | clearScopeChain () |
const ScopeChain * | fullScopeChain () const |
void | printScopeChain () const |
QSObject | thisValue () const |
void | setThisValue (const QSObject &t) |
const QSClass * | thisClass () const |
QSObject | globalObject () const |
QSObject | getValueDirect (int index, int level) |
void | setValueDirect (int index, int level, const QSObject &value) |
QSObject | scopeObjectAt (int level) const |
QSClass * | classByName (const QString &n) |
QSClass * | classByIdentifier (const QString &n) |
void | pushLabel (const QString &l) |
void | popLabel () |
bool | containsLabel (const QString &l) const |
QString | currentLabel () const |
void | setCurrentLabel (const QString &l) |
bool | isCurrentLabelValid () const |
QSObjectClass * | objectClass () const |
QSNullClass * | nullClass () const |
QSUndefinedClass * | undefinedClass () const |
QSNumberClass * | numberClass () const |
QSBooleanClass * | booleanClass () const |
QSStringClass * | stringClass () const |
QSTypeClass * | typeClass () const |
QSErrorClass * | errorClass () const |
QSArrayClass * | arrayClass () const |
QSDateClass * | dateClass () const |
QSRegExpClass * | regexpClass () const |
QSMathClass * | mathClass () const |
QSFuncRefClass * | funcRefClass () const |
QSDebugClass * | debugClass () const |
QSSystemClass * | systemClass () const |
QSGlobalClass * | globalClass () const |
QSArgumentsClass * | argumentsClass () const |
QSDynamicClass * | dynamicClass () const |
void | registerClass (QSClass *cl) |
void | unregisterClass (QSClass *cl) |
QSObject | resolveValue (const QString &n) const |
QPtrList< QSClass > | classes () const |
QSObject | throwError (ErrorType e, const QString &m=QString::null, int l=-1) |
QSObject | throwError (const QString &msg) |
void | setException (const QSObject &e) |
void | setException (const QString &msg) |
QSObject | exception () |
void | clearException () |
void | setExecutionMode (ExecutionMode mode) |
ExecutionMode | executionMode () const |
bool | isNormalMode () const |
bool | isExceptionMode () const |
bool | isBreakMode () const |
bool | isContinueMode () const |
bool | isReturnValueMode () const |
void | setArguments (const QSList *lst) |
const QSList * | arguments () const |
QSObject | arg (int index) const |
int | numArgs () const |
QSObject | createNumber (double n) const |
QSObject | createBoolean (bool b) const |
QSObject | createString (const QString &s) const |
QSObject | createUndefined () const |
QSObject | createNull () const |
QSObject | createShared (const QSClass *cl, QSShared *sh) const |
void | registerShared (QSShared *sh) const |
void | removeShared (QSShared *sh) const |
bool | isShuttingDown () const |
int | stackDepth () const |
void | incrStackDepth () |
void | decrStackDepth () |
Métodos públicos estáticos |
static void | printScopeChain (const ScopeChain *chain) |
Documentación de las enumeraciones miembro de la clase
- Valores de enumeraciones:
Normal |
|
Break |
|
Continue |
|
ReturnValue |
|
Throw |
|
Documentación del constructor y destructor
Documentación de las funciones miembro
const QSList* QSEnv::arguments |
( |
| ) |
const [inline] |
Return a pointer to the QSClass object named n. Returns 0 if no such class could be found.
void QSEnv::clear |
( |
void |
| ) |
|
void QSEnv::clearException |
( |
| ) |
|
void QSEnv::clearScopeChain |
( |
| ) |
[inline] |
QSObject QSEnv::createNull |
( |
| ) |
const [inline] |
QSObject QSEnv::createNumber |
( |
double |
n | ) |
const [inline] |
QSObject QSEnv::createUndefined |
( |
| ) |
const [inline] |
QString QSEnv::currentLabel |
( |
| ) |
const [inline] |
QSObject QSEnv::currentScope |
( |
| ) |
const [inline] |
void QSEnv::decrStackDepth |
( |
| ) |
[inline] |
QSEngine* QSEnv::engine |
( |
| ) |
const [inline] |
const ScopeChain* QSEnv::fullScopeChain |
( |
| ) |
const [inline] |
QSObject QSEnv::globalObject |
( |
| ) |
const [inline] |
void QSEnv::incrStackDepth |
( |
| ) |
[inline] |
bool QSEnv::isBreakMode |
( |
| ) |
const [inline] |
bool QSEnv::isContinueMode |
( |
| ) |
const [inline] |
bool QSEnv::isCurrentLabelValid |
( |
| ) |
const |
bool QSEnv::isExceptionMode |
( |
| ) |
const [inline] |
bool QSEnv::isNormalMode |
( |
| ) |
const [inline] |
bool QSEnv::isReturnValueMode |
( |
| ) |
const [inline] |
bool QSEnv::isShuttingDown |
( |
| ) |
const [inline] |
int QSEnv::numArgs |
( |
| ) |
const [inline] |
void QSEnv::popScope |
( |
| ) |
[inline] |
void QSEnv::popScopeBlock |
( |
| ) |
[inline] |
void QSEnv::printScopeChain |
( |
const ScopeChain * |
chain | ) |
[static] |
void QSEnv::printScopeChain |
( |
| ) |
const |
void QSEnv::pushLabel |
( |
const QString & |
l | ) |
|
void QSEnv::pushScope |
( |
const QSObject & |
scope | ) |
[inline] |
void QSEnv::pushScopeBlock |
( |
| ) |
[inline] |
void QSEnv::registerClass |
( |
QSClass * |
cl | ) |
|
void QSEnv::registerShared |
( |
QSShared * |
sh | ) |
const |
void QSEnv::removeShared |
( |
QSShared * |
sh | ) |
const |
Returns the value of the property ident or an invalid QSObject if no such property could be found in the current scope chain. The return value should therefore always be checked for validity before it is used any further.
void QSEnv::setArguments |
( |
const QSList * |
lst | ) |
[inline] |
void QSEnv::setCurrentLabel |
( |
const QString & |
l | ) |
[inline] |
void QSEnv::setException |
( |
const QSObject & |
e | ) |
|
void QSEnv::setException |
( |
const QString & |
msg | ) |
|
void QSEnv::setThisValue |
( |
const QSObject & |
t | ) |
[inline] |
void QSEnv::setValueDirect |
( |
int |
index, |
|
|
int |
level, |
|
|
const QSObject & |
value |
|
) |
| |
int QSEnv::stackDepth |
( |
| ) |
const [inline] |
const QSClass* QSEnv::thisClass |
( |
| ) |
const [inline] |
QSObject QSEnv::thisValue |
( |
| ) |
const [inline] |
Throw an error of type e described with m. l denotes the line number of the error unless you don't know. Use the default -1 then.
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Throws a general error described by msg.
void QSEnv::unregisterClass |
( |
QSClass * |
cl | ) |
|
La documentación para esta clase fue generada a partir de los siguientes ficheros: