Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 6007

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kjs: object.h Source File (kjs)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kjs</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
<div class="header">
  <div class="headertitle">
<div class="title">object.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c-basic-offset: 2 -*-</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> *  This file is part of the KDE libraries</span>
<a name="l00004"></a>00004 <span class="comment"> *  Copyright (C) 1999-2001 Harri Porten (porten@kde.org)</span>
<a name="l00005"></a>00005 <span class="comment"> *  Copyright (C) 2001 Peter Kelly (pmk@post.com)</span>
<a name="l00006"></a>00006 <span class="comment"> *  Copyright (C) 2003 Apple Computer, Inc.</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> *  This library is free software; you can redistribute it and/or</span>
<a name="l00009"></a>00009 <span class="comment"> *  modify it under the terms of the GNU Library General Public</span>
<a name="l00010"></a>00010 <span class="comment"> *  License as published by the Free Software Foundation; either</span>
<a name="l00011"></a>00011 <span class="comment"> *  version 2 of the License, or (at your option) any later version.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> *  This library is distributed in the hope that it will be useful,</span>
<a name="l00014"></a>00014 <span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00015"></a>00015 <span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00016"></a>00016 <span class="comment"> *  Library General Public License for more details.</span>
<a name="l00017"></a>00017 <span class="comment"> *</span>
<a name="l00018"></a>00018 <span class="comment"> *  You should have received a copy of the GNU Library General Public License</span>
<a name="l00019"></a>00019 <span class="comment"> *  along with this library; see the file COPYING.LIB.  If not, write to</span>
<a name="l00020"></a>00020 <span class="comment"> *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
<a name="l00021"></a>00021 <span class="comment"> *  Boston, MA 02110-1301, USA.</span>
<a name="l00022"></a>00022 <span class="comment"> *</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef _KJS_OBJECT_H_</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define _KJS_OBJECT_H_</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="comment">// Objects</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;value.h&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;types.h&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;reference_list.h&quot;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;identifier.h&quot;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &quot;property_map.h&quot;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;scope_chain.h&quot;</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">namespace </span>KJS {
<a name="l00039"></a>00039 
<a name="l00040"></a>00040   <span class="keyword">class </span>ObjectImpPrivate;
<a name="l00041"></a>00041   <span class="keyword">class </span>PropertyMap;
<a name="l00042"></a>00042   <span class="keyword">class </span>HashTable;
<a name="l00043"></a>00043   <span class="keyword">struct </span>HashEntry;
<a name="l00044"></a>00044   <span class="keyword">class </span>ListImp;
<a name="l00045"></a>00045 
<a name="l00049"></a>00049   <span class="keyword">enum</span> Attribute { None       = 0,
<a name="l00050"></a>00050                    ReadOnly   = 1 &lt;&lt; 1, 
<a name="l00051"></a>00051                    DontEnum   = 1 &lt;&lt; 2, 
<a name="l00052"></a>00052                    DontDelete = 1 &lt;&lt; 3, 
<a name="l00053"></a>00053                    Internal   = 1 &lt;&lt; 4, 
<a name="l00054"></a>00054                    Function   = 1 &lt;&lt; 5 }; 
<a name="l00055"></a>00055 
<a name="l00059"></a><a class="code" href="structKJS_1_1ClassInfo.html">00059</a>   <span class="keyword">struct </span><a class="code" href="structKJS_1_1ClassInfo.html" title="Class Information.">ClassInfo</a> {
<a name="l00063"></a><a class="code" href="structKJS_1_1ClassInfo.html#a65ebb96070dab1ebdbd7fcca128fcd7a">00063</a>     <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="structKJS_1_1ClassInfo.html#a65ebb96070dab1ebdbd7fcca128fcd7a" title="A string denoting the class name.">className</a>;
<a name="l00068"></a><a class="code" href="structKJS_1_1ClassInfo.html#aac9d415e8e0349df8cd56f24c3a7b28c">00068</a>     <span class="keyword">const</span> <a class="code" href="structKJS_1_1ClassInfo.html" title="Class Information.">ClassInfo</a> *<a class="code" href="structKJS_1_1ClassInfo.html#aac9d415e8e0349df8cd56f24c3a7b28c" title="Pointer to the class information of the base class.">parentClass</a>;
<a name="l00072"></a><a class="code" href="structKJS_1_1ClassInfo.html#a9828b2b86f41ebf22161ef101bf31308">00072</a>     <span class="keyword">const</span> <a class="code" href="structKJS_1_1HashTable.html" title="A hash table Usually the hashtable is generated by the create_hash_table script, from a ...">HashTable</a> *<a class="code" href="structKJS_1_1ClassInfo.html#a9828b2b86f41ebf22161ef101bf31308" title="Static hash-table of properties.">propHashTable</a>;
<a name="l00076"></a><a class="code" href="structKJS_1_1ClassInfo.html#a05cfb01019d68b46552d9ce7a9ee1752">00076</a>     <span class="keywordtype">void</span> *<a class="code" href="structKJS_1_1ClassInfo.html#a05cfb01019d68b46552d9ce7a9ee1752" title="Reserved for future extension.">dummy</a>;
<a name="l00077"></a>00077   };
<a name="l00078"></a>00078 
<a name="l00082"></a><a class="code" href="classKJS_1_1Object.html">00082</a>   <span class="keyword">class </span>KJS_EXPORT <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> : <span class="keyword">public</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> {
<a name="l00083"></a>00083   <span class="keyword">public</span>:
<a name="l00084"></a>00084     <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a>() { }
<a name="l00085"></a>00085     <span class="keyword">explicit</span> <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a>(ObjectImp *v);
<a name="l00086"></a>00086 
<a name="l00087"></a>00087     ObjectImp *imp() <span class="keyword">const</span>;
<a name="l00088"></a>00088 
<a name="l00089"></a>00089     <span class="keyword">const</span> <a class="code" href="structKJS_1_1ClassInfo.html" title="Class Information.">ClassInfo</a> *classInfo() <span class="keyword">const</span>;
<a name="l00090"></a>00090     <span class="keywordtype">bool</span> inherits(<span class="keyword">const</span> <a class="code" href="structKJS_1_1ClassInfo.html" title="Class Information.">ClassInfo</a> *cinfo) <span class="keyword">const</span>;
<a name="l00091"></a>00091 
<a name="l00101"></a>00101     <span class="keyword">static</span> <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> dynamicCast(<span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;v);
<a name="l00102"></a>00102 
<a name="l00111"></a>00111     <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> prototype() <span class="keyword">const</span>;
<a name="l00112"></a>00112 
<a name="l00120"></a>00120     <a class="code" href="classKJS_1_1UString.html" title="Unicode string class.">UString</a> className() <span class="keyword">const</span>;
<a name="l00121"></a>00121 
<a name="l00134"></a>00134     <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> <span class="keyword">get</span>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName) <span class="keyword">const</span>;
<a name="l00135"></a>00135     <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> <span class="keyword">get</span>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName) <span class="keyword">const</span>;
<a name="l00136"></a>00136 
<a name="l00147"></a>00147     <span class="keywordtype">void</span> put(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName,
<a name="l00148"></a>00148          <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value, <span class="keywordtype">int</span> attr = None);
<a name="l00149"></a>00149     <span class="keywordtype">void</span> put(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName,
<a name="l00150"></a>00150          <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value, <span class="keywordtype">int</span> attr = None);
<a name="l00151"></a>00151 
<a name="l00162"></a>00162     <span class="keywordtype">bool</span> canPut(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName) <span class="keyword">const</span>;
<a name="l00163"></a>00163 
<a name="l00174"></a>00174     <span class="keywordtype">bool</span> hasProperty(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName) <span class="keyword">const</span>;
<a name="l00175"></a>00175     <span class="keywordtype">bool</span> hasProperty(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName) <span class="keyword">const</span>;
<a name="l00176"></a>00176 
<a name="l00188"></a>00188     <span class="keywordtype">bool</span> deleteProperty(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName);
<a name="l00189"></a>00189     <span class="keywordtype">bool</span> deleteProperty(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName);
<a name="l00190"></a>00190 
<a name="l00203"></a>00203     <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> defaultValue(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, Type hint) <span class="keyword">const</span>;
<a name="l00204"></a>00204 
<a name="l00213"></a>00213     <span class="keywordtype">bool</span> implementsConstruct() <span class="keyword">const</span>;
<a name="l00214"></a>00214 
<a name="l00240"></a>00240     <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> construct(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1List.html" title="Native list type.">List</a> &amp;args);
<a name="l00241"></a>00241 
<a name="l00250"></a>00250     <span class="keywordtype">bool</span> implementsCall() <span class="keyword">const</span>;
<a name="l00251"></a>00251 
<a name="l00252"></a>00252 
<a name="l00270"></a>00270     <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> call(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> &amp;thisObj, <span class="keyword">const</span> <a class="code" href="classKJS_1_1List.html" title="Native list type.">List</a> &amp;args);
<a name="l00271"></a>00271 
<a name="l00280"></a>00280     <span class="keywordtype">bool</span> implementsHasInstance() <span class="keyword">const</span>;
<a name="l00281"></a>00281 
<a name="l00291"></a>00291     <a class="code" href="classKJS_1_1Boolean.html" title="Represents an primitive Boolean value.">Boolean</a> hasInstance(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value);
<a name="l00292"></a>00292 
<a name="l00318"></a>00318     <span class="keyword">const</span> <a class="code" href="classKJS_1_1ScopeChain.html" title="A scope chain object.">ScopeChain</a> &amp;scope() <span class="keyword">const</span>;
<a name="l00319"></a>00319     <span class="keywordtype">void</span> setScope(<span class="keyword">const</span> <a class="code" href="classKJS_1_1ScopeChain.html" title="A scope chain object.">ScopeChain</a> &amp;s);
<a name="l00320"></a>00320 
<a name="l00337"></a>00337     <a class="code" href="classKJS_1_1ReferenceList.html" title="A list of Reference objects.">ReferenceList</a> propList(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>);
<a name="l00338"></a>00338 
<a name="l00347"></a>00347     <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> internalValue() <span class="keyword">const</span>;
<a name="l00348"></a>00348 
<a name="l00356"></a>00356     <span class="keywordtype">void</span> setInternalValue(<span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;v);
<a name="l00357"></a>00357   };
<a name="l00358"></a>00358 
<a name="l00359"></a><a class="code" href="classKJS_1_1Value.html#a072d956ce72fd1387bacb27dc466239d">00359</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> <a class="code" href="classKJS_1_1Value.html#a072d956ce72fd1387bacb27dc466239d" title="Performs the ToObject type conversion operation on this value (ECMA 9.9)">Value::toObject</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rep-&gt;dispatchToObject(exec); }
<a name="l00360"></a>00360 
<a name="l00361"></a>00361   <span class="keyword">class </span>KJS_EXPORT ObjectImp : <span class="keyword">public</span> <a class="code" href="classKJS_1_1ValueImp.html" title="ValueImp is the base type for all primitives (Undefined, Null, Boolean, String, Number) and objects i...">ValueImp</a> {
<a name="l00362"></a>00362     <span class="keyword">friend</span> <span class="keyword">class </span>ObjectProtoFuncImp;
<a name="l00363"></a>00363   <span class="keyword">public</span>:
<a name="l00369"></a>00369     ObjectImp(<span class="keyword">const</span> <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> &amp;proto);
<a name="l00370"></a>00370     ObjectImp(ObjectImp *proto);
<a name="l00371"></a>00371 
<a name="l00377"></a>00377     ObjectImp();
<a name="l00378"></a>00378 
<a name="l00379"></a>00379     <span class="keyword">virtual</span> ~ObjectImp();
<a name="l00380"></a>00380 
<a name="l00381"></a>00381     <span class="keyword">virtual</span> <span class="keywordtype">void</span> mark();
<a name="l00382"></a>00382 
<a name="l00383"></a>00383     Type type() <span class="keyword">const</span>;
<a name="l00384"></a>00384 
<a name="l00422"></a>00422     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="structKJS_1_1ClassInfo.html" title="Class Information.">ClassInfo</a> *classInfo() <span class="keyword">const</span>;
<a name="l00423"></a>00423 
<a name="l00450"></a>00450     <span class="keywordtype">bool</span> inherits(<span class="keyword">const</span> <a class="code" href="structKJS_1_1ClassInfo.html" title="Class Information.">ClassInfo</a> *cinfo) <span class="keyword">const</span>;
<a name="l00451"></a>00451 
<a name="l00452"></a>00452     <span class="comment">// internal properties (ECMA 262-3 8.6.2)</span>
<a name="l00453"></a>00453 
<a name="l00460"></a>00460     <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> prototype() <span class="keyword">const</span>;
<a name="l00461"></a>00461     <span class="keywordtype">void</span> setPrototype(<span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;proto);
<a name="l00462"></a>00462 
<a name="l00474"></a>00474     <span class="keyword">virtual</span> <a class="code" href="classKJS_1_1UString.html" title="Unicode string class.">UString</a> className() <span class="keyword">const</span>;
<a name="l00475"></a>00475 
<a name="l00482"></a>00482     <span class="comment">// [[Get]] - must be implemented by all Objects</span>
<a name="l00483"></a>00483     <span class="keyword">virtual</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> <span class="keyword">get</span>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName) <span class="keyword">const</span>;
<a name="l00484"></a>00484     <span class="keyword">virtual</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> getPropertyByIndex(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec,
<a name="l00485"></a>00485                      <span class="keywordtype">unsigned</span> propertyName) <span class="keyword">const</span>;
<a name="l00486"></a>00486 
<a name="l00493"></a>00493     <span class="keyword">virtual</span> <span class="keywordtype">void</span> put(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName,
<a name="l00494"></a>00494              <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value, <span class="keywordtype">int</span> attr = None);
<a name="l00495"></a>00495     <span class="keyword">virtual</span> <span class="keywordtype">void</span> putPropertyByIndex(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName,
<a name="l00496"></a>00496                     <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value, <span class="keywordtype">int</span> attr = None);
<a name="l00497"></a>00497 
<a name="l00504"></a>00504     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> canPut(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName) <span class="keyword">const</span>;
<a name="l00505"></a>00505 
<a name="l00512"></a>00512     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasProperty(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec,
<a name="l00513"></a>00513                  <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName) <span class="keyword">const</span>;
<a name="l00514"></a>00514     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasPropertyByIndex(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName) <span class="keyword">const</span>;
<a name="l00515"></a>00515 
<a name="l00522"></a>00522     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> deleteProperty(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec,
<a name="l00523"></a>00523                 <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName);
<a name="l00524"></a>00524     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> deletePropertyByIndex(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName);
<a name="l00525"></a>00525 
<a name="l00531"></a>00531     <span class="keywordtype">void</span> deleteAllProperties(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *);
<a name="l00532"></a>00532 
<a name="l00539"></a>00539     <span class="keyword">virtual</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> defaultValue(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, Type hint) <span class="keyword">const</span>;
<a name="l00540"></a>00540 
<a name="l00541"></a>00541     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> implementsConstruct() <span class="keyword">const</span>;
<a name="l00547"></a>00547     <span class="keyword">virtual</span> <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> construct(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1List.html" title="Native list type.">List</a> &amp;args);
<a name="l00548"></a>00548 
<a name="l00549"></a>00549     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> implementsCall() <span class="keyword">const</span>;
<a name="l00555"></a>00555     <span class="keyword">virtual</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> call(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> &amp;thisObj,
<a name="l00556"></a>00556                        <span class="keyword">const</span> <a class="code" href="classKJS_1_1List.html" title="Native list type.">List</a> &amp;args);
<a name="l00557"></a>00557 
<a name="l00558"></a>00558     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> implementsHasInstance() <span class="keyword">const</span>;
<a name="l00564"></a>00564     <span class="keyword">virtual</span> <a class="code" href="classKJS_1_1Boolean.html" title="Represents an primitive Boolean value.">Boolean</a> hasInstance(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value);
<a name="l00565"></a>00565 
<a name="l00571"></a>00571     <span class="keyword">const</span> <a class="code" href="classKJS_1_1ScopeChain.html" title="A scope chain object.">ScopeChain</a> &amp;scope()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _scope; }
<a name="l00572"></a>00572     <span class="keywordtype">void</span> setScope(<span class="keyword">const</span> ScopeChain &amp;s) { _scope = s; }
<a name="l00573"></a>00573 
<a name="l00574"></a>00574     <span class="keyword">virtual</span> ReferenceList propList(ExecState *exec, <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>);
<a name="l00575"></a>00575 
<a name="l00576"></a>00576     Value internalValue() <span class="keyword">const</span>;
<a name="l00577"></a>00577     <span class="keywordtype">void</span> setInternalValue(<span class="keyword">const</span> Value &amp;v);
<a name="l00578"></a>00578     <span class="keywordtype">void</span> setInternalValue(ValueImp *v);
<a name="l00579"></a>00579 
<a name="l00580"></a>00580     Value toPrimitive(ExecState *exec,
<a name="l00581"></a>00581                       Type preferredType = UnspecifiedType) <span class="keyword">const</span>;
<a name="l00582"></a>00582     <span class="keywordtype">bool</span> toBoolean(ExecState *exec) <span class="keyword">const</span>;
<a name="l00583"></a>00583     <span class="keywordtype">double</span> toNumber(ExecState *exec) <span class="keyword">const</span>;
<a name="l00584"></a>00584     UString toString(ExecState *exec) <span class="keyword">const</span>;
<a name="l00585"></a>00585     Object toObject(ExecState *exec) <span class="keyword">const</span>;
<a name="l00586"></a>00586 
<a name="l00587"></a>00587     <span class="comment">// This get method only looks at the property map.</span>
<a name="l00588"></a>00588     <span class="comment">// A bit like hasProperty(recursive=false), this doesn&#39;t go to the prototype.</span>
<a name="l00589"></a>00589     <span class="comment">// This is used e.g. by lookupOrCreateFunction (to cache a function, we don&#39;t want</span>
<a name="l00590"></a>00590     <span class="comment">// to look up in the prototype, it might already exist there)</span>
<a name="l00591"></a>00591     ValueImp *getDirect(<span class="keyword">const</span> Identifier&amp; propertyName)<span class="keyword"> const</span>
<a name="l00592"></a>00592 <span class="keyword">        </span>{ <span class="keywordflow">return</span> _prop.get(propertyName); }
<a name="l00593"></a>00593     <span class="keywordtype">void</span> putDirect(<span class="keyword">const</span> Identifier &amp;propertyName, ValueImp *value, <span class="keywordtype">int</span> attr = 0);
<a name="l00594"></a>00594     <span class="keywordtype">void</span> putDirect(<span class="keyword">const</span> Identifier &amp;propertyName, <span class="keywordtype">int</span> value, <span class="keywordtype">int</span> attr = 0);
<a name="l00595"></a>00595 
<a name="l00600"></a>00600     <span class="keywordtype">void</span> setFunctionName(<span class="keyword">const</span> Identifier &amp;propertyName);
<a name="l00601"></a>00601 
<a name="l00602"></a>00602   <span class="keyword">protected</span>:
<a name="l00603"></a>00603     PropertyMap _prop;
<a name="l00604"></a>00604   <span class="keyword">private</span>:
<a name="l00605"></a>00605     <span class="keyword">const</span> HashEntry* findPropertyHashEntry( <span class="keyword">const</span> Identifier&amp; propertyName ) <span class="keyword">const</span>;
<a name="l00606"></a>00606     ObjectImpPrivate *_od;
<a name="l00607"></a>00607     ValueImp *_proto;
<a name="l00608"></a>00608     ValueImp *_internalValue;
<a name="l00609"></a>00609     ScopeChain _scope;
<a name="l00610"></a>00610   };
<a name="l00611"></a>00611 
<a name="l00616"></a>00616   <span class="keyword">enum</span> ErrorType { GeneralError   = 0,
<a name="l00617"></a>00617                    EvalError      = 1,
<a name="l00618"></a>00618                    RangeError     = 2,
<a name="l00619"></a>00619                    ReferenceError = 3,
<a name="l00620"></a>00620                    SyntaxError    = 4,
<a name="l00621"></a>00621                    TypeError      = 5,
<a name="l00622"></a>00622                    URIError       = 6};
<a name="l00623"></a>00623 
<a name="l00627"></a><a class="code" href="classKJS_1_1Error.html">00627</a>   <span class="keyword">class </span>KJS_EXPORT <a class="code" href="classKJS_1_1Error.html" title="Factory methods for error objects.">Error</a> {
<a name="l00628"></a>00628   <span class="keyword">public</span>:
<a name="l00638"></a>00638     <span class="keyword">static</span> <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> create(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, ErrorType errtype = GeneralError,
<a name="l00639"></a>00639                          <span class="keyword">const</span> <span class="keywordtype">char</span> *message = 0, <span class="keywordtype">int</span> lineno = -1,
<a name="l00640"></a>00640                          <span class="keywordtype">int</span> sourceId = -1);
<a name="l00641"></a>00641 
<a name="l00645"></a><a class="code" href="classKJS_1_1Error.html#a147464230357857178409287e62d8f5e">00645</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> * <span class="keyword">const</span> <a class="code" href="classKJS_1_1Error.html#a147464230357857178409287e62d8f5e" title="Array of error names corresponding to ErrorType.">errorNames</a>;
<a name="l00646"></a>00646   };
<a name="l00647"></a>00647 
<a name="l00648"></a>00648   <span class="keyword">inline</span> Object::Object(ObjectImp *v) : <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a>(v) { }
<a name="l00649"></a>00649 
<a name="l00650"></a>00650   <span class="keyword">inline</span> ObjectImp *Object::imp()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>ObjectImp*<span class="keyword">&gt;</span>(rep); }
<a name="l00651"></a>00651 
<a name="l00652"></a>00652   <span class="keyword">inline</span> <span class="keyword">const</span> ClassInfo *Object::classInfo()<span class="keyword"> const</span>
<a name="l00653"></a>00653 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;classInfo(); }
<a name="l00654"></a>00654 
<a name="l00655"></a>00655   <span class="keyword">inline</span> <span class="keywordtype">bool</span> Object::inherits(<span class="keyword">const</span> ClassInfo *cinfo)<span class="keyword"> const</span>
<a name="l00656"></a>00656 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;inherits(cinfo); }
<a name="l00657"></a>00657 
<a name="l00658"></a><a class="code" href="classKJS_1_1Object.html#a2cff3f0240090b1e18bb1fe0160ae7cd">00658</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> <a class="code" href="classKJS_1_1Object.html#a2cff3f0240090b1e18bb1fe0160ae7cd" title="Returns the prototype of this object.">Object::prototype</a>()<span class="keyword"> const</span>
<a name="l00659"></a>00659 <span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a>(imp()-&gt;<a class="code" href="classKJS_1_1Object.html#a2cff3f0240090b1e18bb1fe0160ae7cd" title="Returns the prototype of this object.">prototype</a>()); }
<a name="l00660"></a>00660 
<a name="l00661"></a><a class="code" href="classKJS_1_1Object.html#a17276492a78bac1b2a6f777d6dc819a3">00661</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1UString.html" title="Unicode string class.">UString</a> <a class="code" href="classKJS_1_1Object.html#a17276492a78bac1b2a6f777d6dc819a3" title="Returns the class name of the object.">Object::className</a>()<span class="keyword"> const</span>
<a name="l00662"></a>00662 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;className(); }
<a name="l00663"></a>00663 
<a name="l00664"></a><a class="code" href="classKJS_1_1Object.html#a394b5e197af70d97568c5e17fe61b19f">00664</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> <a class="code" href="classKJS_1_1Object.html#a394b5e197af70d97568c5e17fe61b19f" title="Retrieves the specified property from the object.">Object::get</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName)<span class="keyword"> const</span>
<a name="l00665"></a>00665 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;get(exec,propertyName); }
<a name="l00666"></a>00666 
<a name="l00667"></a>00667   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> <a class="code" href="classKJS_1_1Object.html#a394b5e197af70d97568c5e17fe61b19f" title="Retrieves the specified property from the object.">Object::get</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName)<span class="keyword"> const</span>
<a name="l00668"></a>00668 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;getPropertyByIndex(exec, propertyName); }
<a name="l00669"></a>00669 
<a name="l00670"></a><a class="code" href="classKJS_1_1Object.html#aa67ec5ebaa19921db0fec1688378da2e">00670</a>   <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKJS_1_1Object.html#aa67ec5ebaa19921db0fec1688378da2e" title="Sets the specified property.">Object::put</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value, <span class="keywordtype">int</span> attr)
<a name="l00671"></a>00671     { imp()-&gt;put(exec,propertyName,value,attr); }
<a name="l00672"></a>00672 
<a name="l00673"></a>00673   <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKJS_1_1Object.html#aa67ec5ebaa19921db0fec1688378da2e" title="Sets the specified property.">Object::put</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value, <span class="keywordtype">int</span> attr)
<a name="l00674"></a>00674     { imp()-&gt;putPropertyByIndex(exec, propertyName, value, attr); }
<a name="l00675"></a>00675 
<a name="l00676"></a><a class="code" href="classKJS_1_1Object.html#a5e06be1d8516b039ef13e07b7dcc6649">00676</a>   <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classKJS_1_1Object.html#a5e06be1d8516b039ef13e07b7dcc6649" title="Used to check whether or not a particular property is allowed to be set on an object.">Object::canPut</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName)<span class="keyword"> const</span>
<a name="l00677"></a>00677 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;canPut(exec,propertyName); }
<a name="l00678"></a>00678 
<a name="l00679"></a><a class="code" href="classKJS_1_1Object.html#a8c0f1def86d09e32d8df1e27c3201922">00679</a>   <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classKJS_1_1Object.html#a8c0f1def86d09e32d8df1e27c3201922" title="Checks to see whether the object (or any object in it&#39;s prototype chain) has a property with the spec...">Object::hasProperty</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName)<span class="keyword"> const</span>
<a name="l00680"></a>00680 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;hasProperty(exec, propertyName); }
<a name="l00681"></a>00681 
<a name="l00682"></a>00682   <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classKJS_1_1Object.html#a8c0f1def86d09e32d8df1e27c3201922" title="Checks to see whether the object (or any object in it&#39;s prototype chain) has a property with the spec...">Object::hasProperty</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName)<span class="keyword"> const</span>
<a name="l00683"></a>00683 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;hasPropertyByIndex(exec, propertyName); }
<a name="l00684"></a>00684 
<a name="l00685"></a><a class="code" href="classKJS_1_1Object.html#a2d640f4d38e26af206e47723db28bd90">00685</a>   <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classKJS_1_1Object.html#a2d640f4d38e26af206e47723db28bd90" title="Removes the specified property from the object.">Object::deleteProperty</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Identifier.html" title="Represents an Identifier for a Javascript object.">Identifier</a> &amp;propertyName)
<a name="l00686"></a>00686     { <span class="keywordflow">return</span> imp()-&gt;deleteProperty(exec,propertyName); }
<a name="l00687"></a>00687 
<a name="l00688"></a>00688   <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classKJS_1_1Object.html#a2d640f4d38e26af206e47723db28bd90" title="Removes the specified property from the object.">Object::deleteProperty</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">unsigned</span> propertyName)
<a name="l00689"></a>00689     { <span class="keywordflow">return</span> imp()-&gt;deletePropertyByIndex(exec, propertyName); }
<a name="l00690"></a>00690 
<a name="l00691"></a><a class="code" href="classKJS_1_1Object.html#afdd98c67850006fd3ed8139683125096">00691</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> <a class="code" href="classKJS_1_1Object.html#afdd98c67850006fd3ed8139683125096" title="Converts the object into a primitive value.">Object::defaultValue</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, Type hint)<span class="keyword"> const</span>
<a name="l00692"></a>00692 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;defaultValue(exec,hint); }
<a name="l00693"></a>00693 
<a name="l00694"></a><a class="code" href="classKJS_1_1Object.html#a4895ab8a12addaadb7e7f623fca8164b">00694</a>   <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classKJS_1_1Object.html#a4895ab8a12addaadb7e7f623fca8164b" title="Whether or not the object implements the construct() method.">Object::implementsConstruct</a>()<span class="keyword"> const</span>
<a name="l00695"></a>00695 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;implementsConstruct(); }
<a name="l00696"></a>00696 
<a name="l00697"></a><a class="code" href="classKJS_1_1Object.html#a85a7d585cbaeaef5bff34676bb748cc7">00697</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a> <a class="code" href="classKJS_1_1Object.html#a85a7d585cbaeaef5bff34676bb748cc7" title="Creates a new object based on this object.">Object::construct</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1List.html" title="Native list type.">List</a> &amp;args)
<a name="l00698"></a>00698     { <span class="keywordflow">return</span> imp()-&gt;construct(exec,args); }
<a name="l00699"></a>00699 
<a name="l00700"></a><a class="code" href="classKJS_1_1Object.html#a7c08a913629973d9eddf5b7f53ef5200">00700</a>   <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classKJS_1_1Object.html#a7c08a913629973d9eddf5b7f53ef5200" title="Whether or not the object implements the call() method.">Object::implementsCall</a>()<span class="keyword"> const</span>
<a name="l00701"></a>00701 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;implementsCall(); }
<a name="l00702"></a>00702 
<a name="l00703"></a><a class="code" href="classKJS_1_1Object.html#aea23ed46537c553309db0175fc16c3c3">00703</a>   <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classKJS_1_1Object.html#aea23ed46537c553309db0175fc16c3c3" title="Whether or not the object implements the hasInstance() method.">Object::implementsHasInstance</a>()<span class="keyword"> const</span>
<a name="l00704"></a>00704 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;implementsHasInstance(); }
<a name="l00705"></a>00705 
<a name="l00706"></a><a class="code" href="classKJS_1_1Object.html#aaf2fd9b4bdd6f136a47c4e687703979e">00706</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1Boolean.html" title="Represents an primitive Boolean value.">Boolean</a> <a class="code" href="classKJS_1_1Object.html#aaf2fd9b4bdd6f136a47c4e687703979e" title="Checks whether value delegates behavior to this object.">Object::hasInstance</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;value)
<a name="l00707"></a>00707     { <span class="keywordflow">return</span> imp()-&gt;hasInstance(exec,value); }
<a name="l00708"></a>00708 
<a name="l00709"></a><a class="code" href="classKJS_1_1Object.html#a9d73e7096217ae16b112d9a12196efb4">00709</a>   <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classKJS_1_1ScopeChain.html" title="A scope chain object.">ScopeChain</a> &amp;<a class="code" href="classKJS_1_1Object.html#a9d73e7096217ae16b112d9a12196efb4" title="Returns the scope of this object.">Object::scope</a>()<span class="keyword"> const</span>
<a name="l00710"></a>00710 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;scope(); }
<a name="l00711"></a>00711 
<a name="l00712"></a>00712   <span class="keyword">inline</span> <span class="keywordtype">void</span> Object::setScope(<span class="keyword">const</span> <a class="code" href="classKJS_1_1ScopeChain.html" title="A scope chain object.">ScopeChain</a> &amp;s)
<a name="l00713"></a>00713     { imp()-&gt;setScope(s); }
<a name="l00714"></a>00714 
<a name="l00715"></a><a class="code" href="classKJS_1_1Object.html#a8c7f2e3e8a4e60713cb58f8526cf875b">00715</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1ReferenceList.html" title="A list of Reference objects.">ReferenceList</a> <a class="code" href="classKJS_1_1Object.html#a8c7f2e3e8a4e60713cb58f8526cf875b" title="Returns a List of References to all the properties of the object.">Object::propList</a>(<a class="code" href="classKJS_1_1ExecState.html" title="Represents the current state of script execution.">ExecState</a> *exec, <span class="keywordtype">bool</span> recursive)
<a name="l00716"></a>00716     { <span class="keywordflow">return</span> imp()-&gt;propList(exec,recursive); }
<a name="l00717"></a>00717 
<a name="l00718"></a><a class="code" href="classKJS_1_1Object.html#ae57ce80e0db9939378bdf4ce7d68b4bb">00718</a>   <span class="keyword">inline</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> <a class="code" href="classKJS_1_1Object.html#ae57ce80e0db9939378bdf4ce7d68b4bb" title="Returns the internal value of the object.">Object::internalValue</a>()<span class="keyword"> const</span>
<a name="l00719"></a>00719 <span class="keyword">    </span>{ <span class="keywordflow">return</span> imp()-&gt;internalValue(); }
<a name="l00720"></a>00720 
<a name="l00721"></a><a class="code" href="classKJS_1_1Object.html#a467d7a34694e82573c77fda53fffa50e">00721</a>   <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKJS_1_1Object.html#a467d7a34694e82573c77fda53fffa50e" title="Sets the internal value of the object.">Object::setInternalValue</a>(<span class="keyword">const</span> <a class="code" href="classKJS_1_1Value.html" title="Value objects are act as wrappers (&quot;smart pointers&quot;) around ValueImp objects and their descendents...">Value</a> &amp;v)
<a name="l00722"></a>00722     { imp()-&gt;setInternalValue(v); }
<a name="l00723"></a>00723 
<a name="l00724"></a>00724 } <span class="comment">// namespace</span>
<a name="l00725"></a>00725 
<a name="l00726"></a>00726 <span class="preprocessor">#endif // _KJS_OBJECT_H_</span>
</pre></div></div>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kjs</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKJS_1_1BinaryLogicalNode.html">kjs::binarylogicalnode</option>,  <option value="classKJS_1_1Boolean.html">kjs::boolean</option>,  <option value="classKJS_1_1Collector.html">kjs::collector</option>,  <option value="classKJS_1_1Completion.html">kjs::completion</option>,  <option value="classKJS_1_1ConditionalNode.html">kjs::conditionalnode</option>,  <option value="classKJS_1_1Context.html">kjs::context</option>,  <option value="classKJS_1_1ContextImp.html">kjs::contextimp</option>,  <option value="classKJS_1_1CString.html">kjs::cstring</option>,  <option value="classKJS_1_1Error.html">kjs::error</option>,  <option value="classKJS_1_1ExecState.html">kjs::execstate</option>,  <option value="classKJS_1_1FunctionImp.html">kjs::functionimp</option>,  <option value="classKJS_1_1FunctionPrototypeImp.html">kjs::functionprototypeimp</option>,  <option value="classKJS_1_1Identifier.html">kjs::identifier</option>,  <option value="classKJS_1_1InternalFunctionImp.html">kjs::internalfunctionimp</option>,  <option value="classKJS_1_1Interpreter.html">kjs::interpreter</option>,  <option value="classKJS_1_1LabelStack.html">kjs::labelstack</option>,  <option value="classKJS_1_1List.html">kjs::list</option>,  <option value="classKJS_1_1ListIterator.html">kjs::listiterator</option>,  <option value="classKJS_1_1Lookup.html">kjs::lookup</option>,  <option value="classKJS_1_1Null.html">kjs::null</option>,  <option value="classKJS_1_1Number.html">kjs::number</option>,  <option value="classKJS_1_1Object.html">kjs::object</option>,  <option value="classKJS_1_1PropertyMap.html">kjs::propertymap</option>,  <option value="classKJS_1_1Reference.html">kjs::reference</option>,  <option value="classKJS_1_1ReferenceList.html">kjs::referencelist</option>,  <option value="classKJS_1_1ReferenceListIterator.html">kjs::referencelistiterator</option>,  <option value="classKJS_1_1SavedProperties.html">kjs::savedproperties</option>,  <option value="classKJS_1_1ScopeChain.html">kjs::scopechain</option>,  <option value="classKJS_1_1ScopeChainNode.html">kjs::scopechainnode</option>,  <option value="classKJS_1_1String.html">kjs::string</option>,  <option value="classKJS_1_1UCharReference.html">kjs::ucharreference</option>,  <option value="classKJS_1_1Undefined.html">kjs::undefined</option>,  <option value="classKJS_1_1UString.html">kjs::ustring</option>,  <option value="classKJS_1_1Value.html">kjs::value</option>,  <option value="classKJS_1_1ValueImp.html">kjs::valueimp</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>