Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Métodos públicos estáticos
Referencia de la Clase QSEnv

#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 ()
QSEngineengine () const
void pushScopeBlock ()
void pushScope (const QSObject &scope)
void popScope ()
void popScopeBlock ()
ScopeChain scope () const
QSObject currentScope () const
void clearScopeChain ()
const ScopeChainfullScopeChain () const
void printScopeChain () const
QSObject thisValue () const
void setThisValue (const QSObject &t)
const QSClassthisClass () const
QSObject globalObject () const
QSObject getValueDirect (int index, int level)
void setValueDirect (int index, int level, const QSObject &value)
QSObject scopeObjectAt (int level) const
QSClassclassByName (const QString &n)
QSClassclassByIdentifier (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
QSObjectClassobjectClass () const
QSNullClassnullClass () const
QSUndefinedClassundefinedClass () const
QSNumberClassnumberClass () const
QSBooleanClassbooleanClass () const
QSStringClassstringClass () const
QSTypeClasstypeClass () const
QSErrorClasserrorClass () const
QSArrayClassarrayClass () const
QSDateClassdateClass () const
QSRegExpClassregexpClass () const
QSMathClassmathClass () const
QSFuncRefClassfuncRefClass () const
QSDebugClassdebugClass () const
QSSystemClasssystemClass () const
QSGlobalClassglobalClass () const
QSArgumentsClassargumentsClass () const
QSDynamicClassdynamicClass () const
void registerClass (QSClass *cl)
void unregisterClass (QSClass *cl)
QSObject resolveValue (const QString &n) const
QPtrList< QSClassclasses () 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 QSListarguments () 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

QSEnv::QSEnv ( QSEngine e)
QSEnv::~QSEnv ( )

Documentación de las funciones miembro

QSObject QSEnv::arg ( int  index) const [inline]
const QSList* QSEnv::arguments ( ) const [inline]
QSArgumentsClass* QSEnv::argumentsClass ( ) const [inline]
QSArrayClass* QSEnv::arrayClass ( ) const [inline]
QSBooleanClass* QSEnv::booleanClass ( ) const [inline]
QSClass * QSEnv::classByIdentifier ( const QString n)
QSClass * QSEnv::classByName ( const QString n)

Return a pointer to the QSClass object named n. Returns 0 if no such class could be found.

QPtrList<QSClass> QSEnv::classes ( ) const [inline]
void QSEnv::clear ( void  )
void QSEnv::clearException ( )
void QSEnv::clearScopeChain ( ) [inline]
bool QSEnv::containsLabel ( const QString l) const
QSObject QSEnv::createBoolean ( bool  b) const [inline]
QSObject QSEnv::createNull ( ) const [inline]
QSObject QSEnv::createNumber ( double  n) const [inline]
QSObject QSEnv::createShared ( const QSClass cl,
QSShared sh 
) const
QSObject QSEnv::createString ( const QString s) const [inline]
QSObject QSEnv::createUndefined ( ) const [inline]
QString QSEnv::currentLabel ( ) const [inline]
QSObject QSEnv::currentScope ( ) const [inline]
QSDateClass* QSEnv::dateClass ( ) const [inline]
QSDebugClass* QSEnv::debugClass ( ) const [inline]
void QSEnv::decrStackDepth ( ) [inline]
QSDynamicClass* QSEnv::dynamicClass ( ) const [inline]
QSEngine* QSEnv::engine ( ) const [inline]
QSErrorClass* QSEnv::errorClass ( ) const [inline]
QSObject QSEnv::exception ( )
ExecutionMode QSEnv::executionMode ( ) const [inline]
const ScopeChain* QSEnv::fullScopeChain ( ) const [inline]
QSFuncRefClass* QSEnv::funcRefClass ( ) const [inline]
QSObject QSEnv::getValueDirect ( int  index,
int  level 
)
QSGlobalClass* QSEnv::globalClass ( ) const [inline]
QSObject QSEnv::globalObject ( ) const [inline]
void QSEnv::incrStackDepth ( ) [inline]
void QSEnv::init ( )
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]
QSMathClass* QSEnv::mathClass ( ) const [inline]
QSNullClass* QSEnv::nullClass ( ) const [inline]
int QSEnv::numArgs ( ) const [inline]
QSNumberClass* QSEnv::numberClass ( ) const [inline]
QSObjectClass* QSEnv::objectClass ( ) const [inline]
void QSEnv::popLabel ( )
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]
QSRegExpClass* QSEnv::regexpClass ( ) const [inline]
void QSEnv::registerClass ( QSClass cl)
void QSEnv::registerShared ( QSShared sh) const
void QSEnv::removeShared ( QSShared sh) const
QSObject QSEnv::resolveValue ( const QString ident) 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.

ScopeChain QSEnv::scope ( ) const [inline]
QSObject QSEnv::scopeObjectAt ( int  level) const
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::setExecutionMode ( ExecutionMode  mode)
void QSEnv::setThisValue ( const QSObject t) [inline]
void QSEnv::setValueDirect ( int  index,
int  level,
const QSObject value 
)
int QSEnv::stackDepth ( ) const [inline]
QSStringClass* QSEnv::stringClass ( ) const [inline]
QSSystemClass* QSEnv::systemClass ( ) const [inline]
const QSClass* QSEnv::thisClass ( ) const [inline]
QSObject QSEnv::thisValue ( ) const [inline]
QSObject QSEnv::throwError ( ErrorType  e,
const QString m = QString::null,
int  l = -1 
)

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.

QSObject QSEnv::throwError ( const QString msg)

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.

QSTypeClass* QSEnv::typeClass ( ) const [inline]
QSUndefinedClass* QSEnv::undefinedClass ( ) const [inline]
void QSEnv::unregisterClass ( QSClass cl)

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'