• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KJS

KJS::JSCell

KJS::JSCell Class Reference

#include <value.h>

Inheritance diagram for KJS::JSCell:

Inheritance graph
[legend]

List of all members.


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]

Reimplemented from KJS::JSValue.

Definition at line 285 of file value.h.

bool KJS::JSCell::isString (  )  const [inline]

Reimplemented from KJS::JSValue.

Definition at line 290 of file value.h.

bool KJS::JSCell::isObject (  )  const [inline]

Reimplemented from KJS::JSValue.

Definition at line 295 of file value.h.

bool KJS::JSCell::isObject ( const ClassInfo *  info  )  const [inline]

Reimplemented from KJS::JSValue.

Definition at line 564 of file object.h.

bool KJS::JSCell::getNumber ( double &  numericValue  )  const

Reimplemented from KJS::JSValue.

Definition at line 139 of file value.cpp.

double KJS::JSCell::getNumber (  )  const

Reimplemented from KJS::JSValue.

Definition at line 147 of file value.cpp.

bool KJS::JSCell::getString ( UString &  stringValue  )  const

Reimplemented from KJS::JSValue.

Definition at line 152 of file value.cpp.

UString KJS::JSCell::getString (  )  const

Reimplemented from KJS::JSValue.

Definition at line 160 of file value.cpp.

JSObject * KJS::JSCell::getObject (  ) 

Reimplemented from KJS::JSValue.

Definition at line 165 of file value.cpp.

const JSObject * KJS::JSCell::getObject (  )  const

Reimplemented from KJS::JSValue.

Definition at line 170 of file value.cpp.

bool KJS::JSCell::getUInt32 ( uint32_t &   )  const [virtual]

Reimplemented from KJS::JSValue.

Definition at line 44 of file value.cpp.

bool KJS::JSCell::getTruncatedInt32 ( int32_t &   )  const [virtual]

Reimplemented from KJS::JSValue.

Definition at line 49 of file value.cpp.

bool KJS::JSCell::getTruncatedUInt32 ( uint32_t &   )  const [virtual]

Reimplemented from KJS::JSValue.

Definition at line 54 of file value.cpp.

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.

virtual bool KJS::JSCell::toBoolean ( ExecState *  exec  )  const [pure virtual]

Reimplemented from KJS::JSValue.

Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.

virtual double KJS::JSCell::toNumber ( ExecState *  exec  )  const [pure virtual]

Reimplemented from KJS::JSValue.

Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.

virtual UString KJS::JSCell::toString ( ExecState *  exec  )  const [pure virtual]

Reimplemented from KJS::JSValue.

Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.

virtual JSObject* KJS::JSCell::toObject ( ExecState *  exec  )  const [pure virtual]

Reimplemented from KJS::JSValue.

Implemented in KJS::StringImp, KJS::NumberImp, KJS::GetterSetterImp, and KJS::JSObject.

void * KJS::JSCell::operator new ( size_t  size  ) 

Definition at line 39 of file value.cpp.

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.

Definition at line 305 of file value.h.

bool KJS::JSCell::marked (  )  const [inline]

Reimplemented from KJS::JSValue.

Definition at line 300 of file value.h.


Friends And Related Function Documentation

friend class Collector [friend]

Reimplemented from KJS::JSValue.

Definition at line 142 of file value.h.

friend class NumberImp [friend]

Definition at line 143 of file value.h.

friend class StringImp [friend]

Definition at line 144 of file value.h.

friend class JSObject [friend]

Definition at line 145 of file value.h.

friend class GetterSetterImp [friend]

Definition at line 146 of file value.h.


The documentation for this class was generated from the following files:
  • value.h
  • object.h
  • value.cpp

KJS

Skip menu "KJS"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal