Qt 4.8
Public Types | Public Functions | List of all members
QScriptObjectDelegate Class Referenceabstract

#include <qscriptobject_p.h>

Inheritance diagram for QScriptObjectDelegate:
QScript::ClassObjectDelegate QScript::DeclarativeObjectDelegate QScript::QObjectDelegate QScript::QVariantDelegate

Public Types

enum  Type { QtObject, Variant, ClassObject, DeclarativeClassObject }
 

Public Functions

virtual bool compareToObject (QScriptObject *, JSC::ExecState *, JSC::JSObject *)
 
virtual bool deleteProperty (QScriptObject *, JSC::ExecState *, const JSC::Identifier &propertyName)
 
virtual JSC::CallType getCallData (QScriptObject *, JSC::CallData &)
 
virtual JSC::ConstructType getConstructData (QScriptObject *, JSC::ConstructData &)
 
virtual bool getOwnPropertyDescriptor (QScriptObject *, JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertyDescriptor &)
 
virtual void getOwnPropertyNames (QScriptObject *, JSC::ExecState *, JSC::PropertyNameArray &, JSC::EnumerationMode mode=JSC::ExcludeDontEnumProperties)
 
virtual bool getOwnPropertySlot (QScriptObject *, JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertySlot &)
 
virtual bool hasInstance (QScriptObject *, JSC::ExecState *, JSC::JSValue value, JSC::JSValue proto)
 
virtual void markChildren (QScriptObject *, JSC::MarkStack &markStack)
 
virtual void put (QScriptObject *, JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue, JSC::PutPropertySlot &)
 
 QScriptObjectDelegate ()
 
virtual Type type () const =0
 
virtual ~QScriptObjectDelegate ()
 

Detailed Description

Definition at line 106 of file qscriptobject_p.h.

Enumerations

◆ Type

Enumerator
QtObject 
Variant 
ClassObject 
DeclarativeClassObject 

Definition at line 109 of file qscriptobject_p.h.

Constructors and Destructors

◆ QScriptObjectDelegate()

QScriptObjectDelegate::QScriptObjectDelegate ( )

Definition at line 152 of file qscriptobject.cpp.

153 {
154 }

◆ ~QScriptObjectDelegate()

QScriptObjectDelegate::~QScriptObjectDelegate ( )
virtual

Definition at line 156 of file qscriptobject.cpp.

157 {
158 }

Functions

◆ compareToObject()

bool QScriptObjectDelegate::compareToObject ( QScriptObject object,
JSC::ExecState *  exec,
JSC::JSObject *  o 
)
virtual

Reimplemented in QScript::DeclarativeObjectDelegate, QScript::QObjectDelegate, and QScript::QVariantDelegate.

Definition at line 217 of file qscriptobject.cpp.

Referenced by QScriptObject::compareToObject().

218 {
219  return object->JSC::JSObject::compareToObject(exec, o);
220 }

◆ deleteProperty()

bool QScriptObjectDelegate::deleteProperty ( QScriptObject object,
JSC::ExecState *  exec,
const JSC::Identifier &  propertyName 
)
virtual

Reimplemented in QScript::QObjectDelegate, QScript::DeclarativeObjectDelegate, and QScript::ClassObjectDelegate.

Definition at line 182 of file qscriptobject.cpp.

Referenced by QScript::ClassObjectDelegate::deleteProperty(), QScriptObject::deleteProperty(), and QScript::DeclarativeObjectDelegate::deleteProperty().

184 {
185  return object->JSC::JSObject::deleteProperty(exec, propertyName);
186 }

◆ getCallData()

JSC::CallType QScriptObjectDelegate::getCallData ( QScriptObject object,
JSC::CallData &  data 
)
virtual

Reimplemented in QScript::DeclarativeObjectDelegate, and QScript::ClassObjectDelegate.

Definition at line 201 of file qscriptobject.cpp.

Referenced by QScript::QtFunction::Data::Data(), QScript::QtPropertyFunction::Data::Data(), QScript::QMetaObjectWrapperObject::Data::Data(), and QScriptObject::getCallData().

202 {
203  return object->JSC::JSObject::getCallData(data);
204 }
static const char * data(const QByteArray &arr)

◆ getConstructData()

JSC::ConstructType QScriptObjectDelegate::getConstructData ( QScriptObject object,
JSC::ConstructData &  data 
)
virtual

Reimplemented in QScript::DeclarativeObjectDelegate, and QScript::ClassObjectDelegate.

Definition at line 206 of file qscriptobject.cpp.

Referenced by QScript::QMetaObjectWrapperObject::Data::Data(), QScriptObject::getConstructData(), and QScript::DeclarativeObjectDelegate::getConstructData().

207 {
208  return object->JSC::JSObject::getConstructData(data);
209 }
static const char * data(const QByteArray &arr)

◆ getOwnPropertyDescriptor()

bool QScriptObjectDelegate::getOwnPropertyDescriptor ( QScriptObject object,
JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::PropertyDescriptor &  descriptor 
)
virtual

Reimplemented in QScript::QObjectDelegate, and QScript::ClassObjectDelegate.

Definition at line 167 of file qscriptobject.cpp.

Referenced by QScript::ClassObjectDelegate::getOwnPropertyDescriptor(), QScriptObject::getOwnPropertyDescriptor(), and QScript::QObjectDelegate::getOwnPropertyDescriptor().

170 {
171  return object->JSC::JSObject::getOwnPropertyDescriptor(exec, propertyName, descriptor);
172 }

◆ getOwnPropertyNames()

void QScriptObjectDelegate::getOwnPropertyNames ( QScriptObject object,
JSC::ExecState *  exec,
JSC::PropertyNameArray &  propertyNames,
JSC::EnumerationMode  mode = JSC::ExcludeDontEnumProperties 
)
virtual

◆ getOwnPropertySlot()

bool QScriptObjectDelegate::getOwnPropertySlot ( QScriptObject object,
JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::PropertySlot &  slot 
)
virtual

◆ hasInstance()

bool QScriptObjectDelegate::hasInstance ( QScriptObject object,
JSC::ExecState *  exec,
JSC::JSValue  value,
JSC::JSValue  proto 
)
virtual

Reimplemented in QScript::DeclarativeObjectDelegate, and QScript::ClassObjectDelegate.

Definition at line 211 of file qscriptobject.cpp.

Referenced by QScriptObject::hasInstance(), QScript::ClassObjectDelegate::hasInstance(), and QScript::DeclarativeObjectDelegate::hasInstance().

213 {
214  return object->JSC::JSObject::hasInstance(exec, value, proto);
215 }

◆ markChildren()

void QScriptObjectDelegate::markChildren ( QScriptObject object,
JSC::MarkStack &  markStack 
)
virtual

Reimplemented in QScript::QObjectDelegate.

Definition at line 195 of file qscriptobject.cpp.

Referenced by QScriptObject::markChildren(), and QScript::QObjectDelegate::markChildren().

196 {
197  // ### should this call the virtual function instead??
198  object->JSC::JSObject::markChildren(markStack);
199 }

◆ put()

void QScriptObjectDelegate::put ( QScriptObject object,
JSC::ExecState *  exec,
const JSC::Identifier &  propertyName,
JSC::JSValue  value,
JSC::PutPropertySlot &  slot 
)
virtual

Reimplemented in QScript::QObjectDelegate, QScript::DeclarativeObjectDelegate, and QScript::ClassObjectDelegate.

Definition at line 175 of file qscriptobject.cpp.

Referenced by QScript::ClassObjectDelegate::put(), QScriptObject::put(), and QScript::DeclarativeObjectDelegate::put().

178 {
179  object->JSC::JSObject::put(exec, propertyName, value, slot);
180 }

◆ type()

virtual Type QScriptObjectDelegate::type ( ) const
pure virtual

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