KJS::JSWrapperObject

Search for usage in LXR

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
 
void mark () override
 
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

◆ internalValue()

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

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
Returns
The internal value of the object

Definition at line 78 of file JSWrapperObject.h.

◆ originalProto()

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

Returns the prototype this object had during construction.

Definition at line 83 of file JSWrapperObject.h.

◆ setInternalValue()

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

Sets the internal value of the object.

See also
internalValue()
Parameters
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-2023 The KDE developers.
Generated on Mon May 8 2023 03:51:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.