Qt 4.8
Classes | Public Functions | Static Public Variables | List of all members
QScript::QScriptActivationObject Class Reference

Represent a scope for native function call. More...

#include <qscriptactivationobject_p.h>

Inheritance diagram for QScript::QScriptActivationObject:

Classes

struct  QScriptActivationObjectData
 

Public Functions

virtual const JSC::ClassInfo * classInfo () const
 
QScriptActivationObjectDatad_ptr () const
 
virtual void defineGetter (JSC::ExecState *, const JSC::Identifier &propertyName, JSC::JSObject *getterFunction)
 
virtual void defineSetter (JSC::ExecState *, const JSC::Identifier &propertyName, JSC::JSObject *setterFunction)
 
JSC::JSObject * delegate () const
 
virtual bool deleteProperty (JSC::ExecState *, const JSC::Identifier &propertyName)
 
virtual bool getOwnPropertyDescriptor (JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertyDescriptor &)
 
virtual void getOwnPropertyNames (JSC::ExecState *, JSC::PropertyNameArray &, JSC::EnumerationMode mode=JSC::ExcludeDontEnumProperties)
 
virtual bool getOwnPropertySlot (JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertySlot &)
 
virtual bool isDynamicScope () const
 
virtual JSC::JSValue lookupGetter (JSC::ExecState *, const JSC::Identifier &propertyName)
 
virtual JSC::JSValue lookupSetter (JSC::ExecState *, const JSC::Identifier &propertyName)
 
virtual void put (JSC::ExecState *, const JSC::Identifier &propertyName, JSC::JSValue value, JSC::PutPropertySlot &)
 
virtual void put (JSC::ExecState *, unsigned propertyName, JSC::JSValue value)
 
virtual void putWithAttributes (JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue value, unsigned attributes)
 
 QScriptActivationObject (JSC::ExecState *callFrame, JSC::JSObject *delegate=0)
 
void setDelegate (JSC::JSObject *delegate)
 
virtual ~QScriptActivationObject ()
 

Static Public Variables

static const JSC::ClassInfo info = { "QScriptActivationObject", 0, 0, 0 }
 

Detailed Description

Represent a scope for native function call.

Warning
This function is not part of the public interface.

Definition at line 47 of file qscriptactivationobject_p.h.

Constructors and Destructors

◆ QScriptActivationObject()

QScript::QScriptActivationObject::QScriptActivationObject ( JSC::ExecState *  callFrame,
JSC::JSObject *  delegate = 0 
)

Definition at line 51 of file qscriptactivationobject.cpp.

52  : JSC::JSVariableObject(callFrame->globalData().activationStructure,
53  new QScriptActivationObjectData(callFrame->registers(), delegate))
54 {
55 }

◆ ~QScriptActivationObject()

QScript::QScriptActivationObject::~QScriptActivationObject ( )
virtual

Definition at line 57 of file qscriptactivationobject.cpp.

58 {
59  delete d_ptr();
60 }
QScriptActivationObjectData * d_ptr() const

Functions

◆ classInfo()

virtual const JSC::ClassInfo* QScript::QScriptActivationObject::classInfo ( ) const
inlinevirtual

Definition at line 68 of file qscriptactivationobject_p.h.

68 { return &info; }

◆ d_ptr()

QScriptActivationObjectData* QScript::QScriptActivationObject::d_ptr ( ) const
inline

◆ defineGetter()

void QScript::QScriptActivationObject::defineGetter ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::JSObject *  getterFunction 
)
virtual

Definition at line 124 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

125 {
126  if (d_ptr()->delegate != 0)
127  d_ptr()->delegate->defineGetter(exec, propertyName, getterFunction);
128  else
129  JSC::JSVariableObject::defineGetter(exec, propertyName, getterFunction);
130 }
QScriptActivationObjectData * d_ptr() const

◆ defineSetter()

void QScript::QScriptActivationObject::defineSetter ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::JSObject *  setterFunction 
)
virtual

Definition at line 132 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

133 {
134  if (d_ptr()->delegate != 0)
135  d_ptr()->delegate->defineSetter(exec, propertyName, setterFunction);
136  else
137  JSC::JSVariableObject::defineSetter(exec, propertyName, setterFunction);
138 }
QScriptActivationObjectData * d_ptr() const

◆ delegate()

JSC::JSObject* QScript::QScriptActivationObject::delegate ( ) const
inline

◆ deleteProperty()

bool QScript::QScriptActivationObject::deleteProperty ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName 
)
virtual

Definition at line 117 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

118 {
119  if (d_ptr()->delegate != 0)
120  return d_ptr()->delegate->deleteProperty(exec, propertyName);
121  return JSC::JSVariableObject::deleteProperty(exec, propertyName);
122 }
QScriptActivationObjectData * d_ptr() const

◆ getOwnPropertyDescriptor()

bool QScript::QScriptActivationObject::getOwnPropertyDescriptor ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::PropertyDescriptor &  descriptor 
)
virtual

Definition at line 69 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

70 {
71  if (d_ptr()->delegate != 0)
72  return d_ptr()->delegate->getOwnPropertyDescriptor(exec, propertyName, descriptor);
73  return JSC::JSVariableObject::getOwnPropertyDescriptor(exec, propertyName, descriptor);
74 }
QScriptActivationObjectData * d_ptr() const

◆ getOwnPropertyNames()

void QScript::QScriptActivationObject::getOwnPropertyNames ( JSC::ExecState *  exec,
JSC::PropertyNameArray &  propertyNames,
JSC::EnumerationMode  mode = JSC::ExcludeDontEnumProperties 
)
virtual

Definition at line 76 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

77 {
78  if (d_ptr()->delegate != 0) {
79  d_ptr()->delegate->getOwnPropertyNames(exec, propertyNames, mode);
80  return;
81  }
82  return JSC::JSVariableObject::getOwnPropertyNames(exec, propertyNames, mode);
83 }
QScriptActivationObjectData * d_ptr() const

◆ getOwnPropertySlot()

bool QScript::QScriptActivationObject::getOwnPropertySlot ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::PropertySlot &  slot 
)
virtual

Definition at line 62 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

63 {
64  if (d_ptr()->delegate != 0)
65  return d_ptr()->delegate->getOwnPropertySlot(exec, propertyName, slot);
66  return JSC::JSVariableObject::getOwnPropertySlot(exec, propertyName, slot);
67 }
QScriptActivationObjectData * d_ptr() const

◆ isDynamicScope()

virtual bool QScript::QScriptActivationObject::isDynamicScope ( ) const
inlinevirtual

Definition at line 51 of file qscriptactivationobject_p.h.

51 { return true; }

◆ lookupGetter()

JSC::JSValue QScript::QScriptActivationObject::lookupGetter ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName 
)
virtual

Definition at line 140 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

141 {
142  if (d_ptr()->delegate != 0)
143  return d_ptr()->delegate->lookupGetter(exec, propertyName);
144  return JSC::JSVariableObject::lookupGetter(exec, propertyName);
145 }
QScriptActivationObjectData * d_ptr() const

◆ lookupSetter()

JSC::JSValue QScript::QScriptActivationObject::lookupSetter ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName 
)
virtual

Definition at line 147 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

148 {
149  if (d_ptr()->delegate != 0)
150  return d_ptr()->delegate->lookupSetter(exec, propertyName);
151  return JSC::JSVariableObject::lookupSetter(exec, propertyName);
152 }
QScriptActivationObjectData * d_ptr() const

◆ put() [1/2]

void QScript::QScriptActivationObject::put ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::JSValue  value,
JSC::PutPropertySlot &  slot 
)
virtual

Definition at line 99 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

100 {
101  if (d_ptr()->delegate != 0) {
102  d_ptr()->delegate->put(exec, propertyName, value, slot);
103  return;
104  }
105  JSC::JSVariableObject::put(exec, propertyName, value, slot);
106 }
QScriptActivationObjectData * d_ptr() const

◆ put() [2/2]

void QScript::QScriptActivationObject::put ( JSC::ExecState *  exec,
unsigned  propertyName,
JSC::JSValue  value 
)
virtual

Definition at line 108 of file qscriptactivationobject.cpp.

109 {
110  if (d_ptr()->delegate != 0) {
111  d_ptr()->delegate->put(exec, propertyName, value);
112  return;
113  }
114  JSC::JSVariableObject::put(exec, propertyName, value);
115 }
QScriptActivationObjectData * d_ptr() const

◆ putWithAttributes()

void QScript::QScriptActivationObject::putWithAttributes ( JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::JSValue  value,
unsigned  attributes 
)
virtual

Definition at line 85 of file qscriptactivationobject.cpp.

Referenced by isDynamicScope().

86 {
87  if (d_ptr()->delegate != 0) {
88  d_ptr()->delegate->putWithAttributes(exec, propertyName, value, attributes);
89  return;
90  }
91 
92  if (symbolTablePutWithAttributes(propertyName, value, attributes))
93  return;
94 
95  JSC::PutPropertySlot slot;
96  JSObject::putWithAttributes(exec, propertyName, value, attributes, true, slot);
97 }
QScriptActivationObjectData * d_ptr() const

◆ setDelegate()

void QScript::QScriptActivationObject::setDelegate ( JSC::JSObject *  delegate)
inline

Properties

◆ info

const JSC::ClassInfo QScript::QScriptActivationObject::info = { "QScriptActivationObject", 0, 0, 0 }
static

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