QScriptContext Class Reference

QScriptContext Class Reference

#include <qscriptcontext.h>

Class Description

Definition at line 39 of file qscriptcontext.h.

Public Types

enum  ExecutionState { NormalState, ExceptionState }
 
enum  Error {
  UnknownError, ReferenceError, SyntaxError, TypeError,
  RangeError, URIError
}
 

Public Member Functions

 ~QScriptContext ()
 
QScriptContextparentContext () const
 
QScriptEngineengine () const
 
ExecutionState state () const
 
QScriptValue callee () const
 
int argumentCount () const
 
QScriptValue argument (int index) const
 
QScriptValue argumentsObject () const
 
QScriptValueList scopeChain () const
 
void pushScope (const QScriptValue &object)
 
QScriptValue popScope ()
 
QScriptValue returnValue () const
 
void setReturnValue (const QScriptValue &result)
 
QScriptValue activationObject () const
 
void setActivationObject (const QScriptValue &activation)
 
QScriptValue thisObject () const
 
void setThisObject (const QScriptValue &thisObject)
 
bool isCalledAsConstructor () const
 
QScriptValue throwValue (const QScriptValue &value)
 
QScriptValue throwError (Error error, const QString &text)
 
QScriptValue throwError (const QString &text)
 
QStringList backtrace () const
 
QString toString () const
 

Member Enumeration Documentation

Enumerator
NormalState 
ExceptionState 

Definition at line 42 of file qscriptcontext.h.

enum Error
Enumerator
UnknownError 
ReferenceError 
SyntaxError 
TypeError 
RangeError 
URIError 

Definition at line 47 of file qscriptcontext.h.

Constructor & Destructor Documentation

Member Function Documentation

QScriptContext* parentContext ( ) const
QScriptEngine* engine ( ) const
ExecutionState state ( ) const
QScriptValue callee ( ) const
int argumentCount ( ) const
QScriptValue argument ( int  index) const
QScriptValue argumentsObject ( ) const
QScriptValueList scopeChain ( ) const
void pushScope ( const QScriptValue object)
QScriptValue popScope ( )
QScriptValue returnValue ( ) const
void setReturnValue ( const QScriptValue result)
QScriptValue activationObject ( ) const
void setActivationObject ( const QScriptValue activation)
QScriptValue thisObject ( ) const
void setThisObject ( const QScriptValue thisObject)
bool isCalledAsConstructor ( ) const
QScriptValue throwValue ( const QScriptValue value)
QScriptValue throwError ( Error  error,
const QString text 
)
QScriptValue throwError ( const QString text)
QStringList backtrace ( ) const
QString toString ( ) const

The documentation for this class was generated from the following file: