Search for usage in LXR

#include <value.h>

Inherits WTFNoncopyable::Noncopyable.

Inherited by KJS::JSCell.

Public Member Functions

bool getBoolean () const
bool getBoolean (bool &) const
JSValuegetByIndex (ExecState *exec, unsigned propertyName) const
double getNumber () const
bool getNumber (double &) const
JSObject * getObject ()
const JSObject * getObject () const
bool getPrimitiveNumber (ExecState *exec, double &number, JSValue *&value)
UString getString () const
bool getString (UString &) const
bool getTruncatedInt32 (int32_t &) const
bool getTruncatedUInt32 (uint32_t &) const
bool getUInt32 (uint32_t &) const
bool implementsCall () const
bool isBoolean () const
bool isNull () const
bool isNumber () const
bool isObject () const
bool isObject (const ClassInfo *) const
bool isString () const
bool isUndefined () const
bool isUndefinedOrNull () const
void mark ()
bool marked () const
bool toBoolean (ExecState *exec) const
float toFloat (ExecState *) const
int32_t toInt32 (ExecState *) const
int32_t toInt32 (ExecState *, bool &ok) const
double toInteger (ExecState *) const
double toIntegerPreserveNaN (ExecState *) const
JSValuetoJSNumber (ExecState *) const
double toNumber (ExecState *exec) const
JSObject * toObject (ExecState *exec) const
JSValuetoPrimitive (ExecState *exec, JSType preferredType=UnspecifiedType) const
UString toString (ExecState *exec) const
uint16_t toUInt16 (ExecState *exec) const
uint32_t toUInt32 (ExecState *) const
uint32_t toUInt32 (ExecState *, bool &ok) const
JSType type () const

Static Public Member Functions

static bool getBoolean (const JSValue *value)
static bool getBoolean (const JSValue *value, bool &)
static JSValuegetByIndex (const JSValue *value, ExecState *exec, unsigned propertyName)
static double getNumber (const JSValue *value)
static bool getNumber (const JSValue *value, double &)
static const JSObject * getObject (const JSValue *value)
static JSObject * getObject (JSValue *value)
static bool getPrimitiveNumber (JSValue *that, ExecState *exec, double &number, JSValue *&value)
static UString getString (const JSValue *value)
static bool getString (const JSValue *value, UString &)
static bool getTruncatedInt32 (const JSValue *value, int32_t &v)
static bool getTruncatedUInt32 (const JSValue *value, uint32_t &v)
static bool getUInt32 (const JSValue *value, uint32_t &)
static bool implementsCall (const JSValue *value)
static bool isBoolean (const JSValue *value)
static bool isNull (const JSValue *value)
static bool isNumber (const JSValue *value)
static bool isObject (const JSValue *value)
static bool isObject (const JSValue *value, const ClassInfo *)
static bool isString (const JSValue *value)
static bool isUndefined (const JSValue *value)
static bool isUndefinedOrNull (const JSValue *value)
static void mark (JSValue *value)
static bool marked (const JSValue *value)
static bool toBoolean (const JSValue *value, ExecState *exec)
static float toFloat (const JSValue *value, ExecState *)
static int32_t toInt32 (const JSValue *value, ExecState *, bool &ok)
static int32_t toInt32 (const JSValue *value, ExecState *exec)
static int32_t toInt32 (double)
static int32_t toInt32SlowCase (double, bool &ok)
static double toInteger (const JSValue *value, ExecState *)
static double toIntegerPreserveNaN (const JSValue *value, ExecState *)
static double toNumber (const JSValue *value, ExecState *exec)
static JSObject * toObject (const JSValue *value, ExecState *exec)
static JSValuetoPrimitive (const JSValue *value, ExecState *exec, JSType preferredType=UnspecifiedType)
static UString toString (const JSValue *value, ExecState *exec)
static uint16_t toUInt16 (const JSValue *value, ExecState *exec)
static uint32_t toUInt32 (const JSValue *value, ExecState *)
static uint32_t toUInt32 (const JSValue *value, ExecState *, bool &ok)
static int32_t toUInt32 (double)
static uint32_t toUInt32SlowCase (double, bool &ok)
static JSType type (const JSValue *value)

Detailed Description

JSValue is the base type for all primitives (Undefined, Null, Boolean, String, Number) and objects in ECMAScript.

Note: you should never inherit from JSValue as it is for primitive types only (all of which are provided internally by KJS). Instead, inherit from JSObject.

Definition at line 58 of file value.h.

Member Function Documentation

◆ implementsCall()

bool KJS::JSValue::implementsCall ( ) const

Whether or not the value implements the call() method.

If it does, this also implies this is an object, and hence it can be cast to a JSObject and the call method can be invoked

true if this is an object implementing the call() method, otherwise false

Definition at line 752 of file value.h.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jan 30 2023 03:56:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.