KJS
KJS::JSCell Class Reference
#include <value.h>

Detailed Description
Definition at line 141 of file value.h.
Public Member Functions | |
| virtual JSType | type () const =0 |
| bool | isNumber () const |
| bool | isString () const |
| bool | isObject () const |
| bool | isObject (const ClassInfo *) const |
| bool | getNumber (double &) const |
| double | getNumber () const |
| bool | getString (UString &) const |
| UString | getString () const |
| JSObject * | getObject () |
| const JSObject * | getObject () const |
| virtual bool | getUInt32 (uint32_t &) const |
| virtual bool | getTruncatedInt32 (int32_t &) const |
| virtual bool | getTruncatedUInt32 (uint32_t &) const |
| virtual JSValue * | toPrimitive (ExecState *exec, JSType preferredType=UnspecifiedType) const =0 |
| virtual bool | getPrimitiveNumber (ExecState *exec, double &number, JSValue *&value)=0 |
| virtual bool | toBoolean (ExecState *exec) const =0 |
| virtual double | toNumber (ExecState *exec) const =0 |
| virtual UString | toString (ExecState *exec) const =0 |
| virtual JSObject * | toObject (ExecState *exec) const =0 |
| void * | operator new (size_t) |
| virtual void | mark () |
| bool | marked () const |
Friends | |
| class | Collector |
| class | NumberImp |
| class | StringImp |
| class | JSObject |
| class | GetterSetterImp |
Member Function Documentation
| virtual JSType KJS::JSCell::type | ( | ) | const [pure virtual] |
Reimplemented from KJS::JSValue.
Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.
| bool KJS::JSCell::isNumber | ( | ) | const [inline] |
| bool KJS::JSCell::isString | ( | ) | const [inline] |
| bool KJS::JSCell::isObject | ( | ) | const [inline] |
| double KJS::JSCell::getNumber | ( | ) | const |
| UString KJS::JSCell::getString | ( | ) | const |
| JSObject * KJS::JSCell::getObject | ( | ) |
| const JSObject * KJS::JSCell::getObject | ( | ) | const |
| bool KJS::JSCell::getUInt32 | ( | uint32_t & | ) | const [virtual] |
| bool KJS::JSCell::getTruncatedInt32 | ( | int32_t & | ) | const [virtual] |
| bool KJS::JSCell::getTruncatedUInt32 | ( | uint32_t & | ) | const [virtual] |
| virtual JSValue* KJS::JSCell::toPrimitive | ( | ExecState * | exec, | |
| JSType | preferredType = UnspecifiedType | |||
| ) | const [pure virtual] |
Reimplemented from KJS::JSValue.
Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.
| virtual bool KJS::JSCell::getPrimitiveNumber | ( | ExecState * | exec, | |
| double & | number, | |||
| JSValue *& | value | |||
| ) | [pure virtual] |
Reimplemented from KJS::JSValue.
Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.
Reimplemented from KJS::JSValue.
Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.
Reimplemented from KJS::JSValue.
Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.
Reimplemented from KJS::JSValue.
Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.
Reimplemented from KJS::JSValue.
Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.
| void KJS::JSCell::mark | ( | ) | [inline, virtual] |
Reimplemented from KJS::JSValue.
Reimplemented in KJS::ArrayInstance, KJS::NativeErrorImp, KJS::Arguments, KJS::ActivationImp, KJS::JSWrapperObject, KJS::GetterSetterImp, KJS::JSObject, and KJS::FunctionImp.
| bool KJS::JSCell::marked | ( | ) | const [inline] |
Friends And Related Function Documentation
friend class Collector [friend] |
friend class GetterSetterImp [friend] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference