KJS::JSWrapperObject Class Reference

#include <JSWrapperObject.h>

Inherits KJS::JSObject.

Inherited by KJS::BooleanInstance, KJS::DateInstance, KJS::NumberInstance, and KJS::StringInstance.

Public Member Functions

 JSWrapperObject (JSValue *proto)
JSValueinternalValue () const
virtual void mark ()
JSValueoriginalProto () const
void setInternalValue (JSValue *v)

Detailed Description

This class is used as a base for classes such as String, Number, Boolean and Date which which are wrappers for primitive types.

These classes stores the internal value, which is the actual value represented by the wrapper objects.

Definition at line 36 of file JSWrapperObject.h.

Member Function Documentation

JSValue * KJS::JSWrapperObject::internalValue ( ) const

Returns the internal value of the object.

This is used for objects such as String and Boolean which are wrappers for native types. The internal value is the actual value represented by the wrapper objects.

See also
ECMA 8.6.2
The internal value of the object

Definition at line 78 of file JSWrapperObject.h.

JSValue * KJS::JSWrapperObject::originalProto ( ) const

Returns the prototype this object had during construction.

Definition at line 83 of file JSWrapperObject.h.

void KJS::JSWrapperObject::setInternalValue ( JSValue v)

Sets the internal value of the object.

See also
vThe new internal value

Definition at line 88 of file JSWrapperObject.h.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 23:02:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.