KJS::JSWrapperObject
#include <JSWrapperObject.h>
Inherits KJS::JSObject.
Inherited by KJS::BooleanInstance, KJS::DateInstance, KJS::NumberInstance, and KJS::StringInstance.
Public Member Functions | |
JSWrapperObject (JSValue *proto) | |
JSValue * | internalValue () const |
void | mark () override |
JSValue * | originalProto () 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()
|
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()
|
inline |
Returns the prototype this object had during construction.
Definition at line 83 of file JSWrapperObject.h.
◆ setInternalValue()
|
inline |
Sets the internal value of the object.
- See also
- internalValue()
- Parameters
-
v The new internal value
Definition at line 88 of file JSWrapperObject.h.
The documentation for this class was generated from the following files:
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.