Sophie

Sophie

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

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: KJS::Interpreter Class Reference (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 id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>KJS</b>      </li>
      <li class="navelem"><a class="el" href="classKJS_1_1Interpreter.html">Interpreter</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">KJS::Interpreter Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KJS::Interpreter" -->
<p><a class="el" href="classKJS_1_1Interpreter.html" title="Interpreter objects can be used to evaluate ECMAScript code.">Interpreter</a> objects can be used to evaluate ECMAScript code.  
 <a href="classKJS_1_1Interpreter.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="interpreter_8h_source.html">interpreter.h</a>&gt;</code></p>

<p><a href="classKJS_1_1Interpreter-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>CompatMode</b> { <b>NativeMode</b>, 
<b>IECompat</b>, 
<b>NetscapeCompat</b>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a91cbdbe2a1b34acbd0230b1ad0f72651">Interpreter</a> (const <a class="el" href="classKJS_1_1Object.html">Object</a> &amp;global)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a9faf0dca72cd27223e5c447b580de2a5">Interpreter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a6d4867616475f8bca54549e910ae1344">globalObject</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a307cb121f16fb51701f98c96e0b7ce86"></a><!-- doxytag: member="KJS::Interpreter::initGlobalObject" ref="a307cb121f16fb51701f98c96e0b7ce86" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>initGlobalObject</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1ExecState.html">ExecState</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#aaeb5d4e2e8d30481851881a06f05a3e4">globalExec</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a74fcc93c30dca80646d8a41c3c6f4509">checkSyntax</a> (const <a class="el" href="classKJS_1_1UString.html">UString</a> &amp;code, int *errLine, <a class="el" href="classKJS_1_1UString.html">UString</a> *errMsg)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a6160ffd2f1240e22e9039be23a25c801">checkSyntax</a> (const <a class="el" href="classKJS_1_1UString.html">UString</a> &amp;code)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Completion.html">Completion</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a656d720cb34b3f614feaa67d4f6545ca">evaluate</a> (const <a class="el" href="classKJS_1_1UString.html">UString</a> &amp;code, const <a class="el" href="classKJS_1_1Value.html">Value</a> &amp;thisV=<a class="el" href="classKJS_1_1Value.html">Value</a>())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a490be87db5717082e625c39994d8bd77"></a><!-- doxytag: member="KJS::Interpreter::imp" ref="a490be87db5717082e625c39994d8bd77" args="()" -->
InterpreterImp *&#160;</td><td class="memItemRight" valign="bottom"><b>imp</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#ad467d009a322544d50af535549c9a18d">builtinObject</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a9596e12e9e9ae5bcba0094365dbd26ec">builtinFunction</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a2f7e9fc6cb4e1e10f7b001cb7729d023">builtinArray</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a033ecdebcc9c3e49acb659038fc6be2f">builtinBoolean</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a7920e625307cb936a3451533fc2b7c1e">builtinString</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#adaca6baf31e48f80b44db8050a6db237">builtinNumber</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a6fd0ab80141d4983974e729298b5f3be">builtinDate</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#ae4c66d318c8493caf8ed103ca2efb442">builtinRegExp</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#ac5426e7f4f5231bb95aaf677abdac5ee">builtinError</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#ac3b61de9e5220f2322c28c8c06bbb7a5">builtinObjectPrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a4b90dee6a664e8f7cacca526b99c0613">builtinFunctionPrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#aa24b5c50fa1f820510b3f7f8f8c01e57">builtinArrayPrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#af669ef2547b7db4aa7f9452247a87677">builtinBooleanPrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a91d8ba94c381e43ce59ecbf618bd2ac3">builtinStringPrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#abe07b8e3809048976edae972183e4e87">builtinNumberPrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a1572761684c8789e56000e53c0b64a92">builtinDatePrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a822c219a83cdf278b416c083097972f2">builtinRegExpPrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#ad02aee98b852a7ae0621279b1ac6b6da">builtinErrorPrototype</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#aa3a2ce17664f47f38cb0b9dfd8f68d0b">builtinEvalError</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a687f6300e0d71d13572afa05b00e9bf3"></a><!-- doxytag: member="KJS::Interpreter::builtinRangeError" ref="a687f6300e0d71d13572afa05b00e9bf3" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinRangeError</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22d4237a05e5791cecef5e239eace1a2"></a><!-- doxytag: member="KJS::Interpreter::builtinReferenceError" ref="a22d4237a05e5791cecef5e239eace1a2" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinReferenceError</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a326653233129db53bdbbee4cf6353f98"></a><!-- doxytag: member="KJS::Interpreter::builtinSyntaxError" ref="a326653233129db53bdbbee4cf6353f98" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinSyntaxError</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad46a0c94e35aed8dd6f44e1cdd1b60ad"></a><!-- doxytag: member="KJS::Interpreter::builtinTypeError" ref="ad46a0c94e35aed8dd6f44e1cdd1b60ad" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinTypeError</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a250e652d3d9cfc189ee33c3c45abff4c"></a><!-- doxytag: member="KJS::Interpreter::builtinURIError" ref="a250e652d3d9cfc189ee33c3c45abff4c" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinURIError</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8cc526b69a8564e917983c51967074d8"></a><!-- doxytag: member="KJS::Interpreter::builtinEvalErrorPrototype" ref="a8cc526b69a8564e917983c51967074d8" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinEvalErrorPrototype</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01d28b02a1f1c92f97839a5e40320bfc"></a><!-- doxytag: member="KJS::Interpreter::builtinRangeErrorPrototype" ref="a01d28b02a1f1c92f97839a5e40320bfc" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinRangeErrorPrototype</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a958a1a557a74cbfa6c134990a25c4d4d"></a><!-- doxytag: member="KJS::Interpreter::builtinReferenceErrorPrototype" ref="a958a1a557a74cbfa6c134990a25c4d4d" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinReferenceErrorPrototype</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8470bf095cee0506b2066d21876e28d6"></a><!-- doxytag: member="KJS::Interpreter::builtinSyntaxErrorPrototype" ref="a8470bf095cee0506b2066d21876e28d6" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinSyntaxErrorPrototype</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e64ed38ddeb2d14ae4d237b8ee5ec5b"></a><!-- doxytag: member="KJS::Interpreter::builtinTypeErrorPrototype" ref="a1e64ed38ddeb2d14ae4d237b8ee5ec5b" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinTypeErrorPrototype</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ce77ac5cffe38fb9e934642222b69e4"></a><!-- doxytag: member="KJS::Interpreter::builtinURIErrorPrototype" ref="a2ce77ac5cffe38fb9e934642222b69e4" args="() const " -->
<a class="el" href="classKJS_1_1Object.html">Object</a>&#160;</td><td class="memItemRight" valign="bottom"><b>builtinURIErrorPrototype</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#aa71b6122001e49c40c67cbaf57db7abf">setCompatMode</a> (CompatMode mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a970e802afc6fa483968034408c0ee104"></a><!-- doxytag: member="KJS::Interpreter::compatMode" ref="a970e802afc6fa483968034408c0ee104" args="() const " -->
CompatMode&#160;</td><td class="memItemRight" valign="bottom"><b>compatMode</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#ab8936a99429d275b3c1bd6f97a5527e3">mark</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a50e5a3db76f1a151362ceec9a6bd3434">rtti</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9c9c0c37969278797755b3bb1cb02a7"></a><!-- doxytag: member="KJS::Interpreter::lock" ref="ae9c9c0c37969278797755b3bb1cb02a7" args="()" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>lock</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e164f36a2f4508d74e398646cb74603"></a><!-- doxytag: member="KJS::Interpreter::unlock" ref="a3e164f36a2f4508d74e398646cb74603" args="()" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>unlock</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKJS_1_1Interpreter.html#a0afcdeb284f68f0788523bbd4647805c">collect</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a76fc1b0f78e362c043e5cbac843893"></a><!-- doxytag: member="KJS::Interpreter::virtual_hook" ref="a1a76fc1b0f78e362c043e5cbac843893" args="(int id, void *data)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int id, void *data)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classKJS_1_1Interpreter.html" title="Interpreter objects can be used to evaluate ECMAScript code.">Interpreter</a> objects can be used to evaluate ECMAScript code. </p>
<p>Each interpreter has a global object which is used for the purposes of code evaluation, and also provides access to built-in properties such as " Object" and "Number". </p>

<p>Definition at line <a class="el" href="interpreter_8h_source.html#l00173">173</a> of file <a class="el" href="interpreter_8h_source.html">interpreter.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a91cbdbe2a1b34acbd0230b1ad0f72651"></a><!-- doxytag: member="KJS::Interpreter::Interpreter" ref="a91cbdbe2a1b34acbd0230b1ad0f72651" args="(const Object &amp;global)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Interpreter::Interpreter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKJS_1_1Object.html">Object</a> &amp;&#160;</td>
          <td class="paramname"><em>global</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new interpreter. </p>
<p>The supplied object will be used as the global object for all scripts executed with this interpreter. During constuction, all the standard properties such as "Object" and "Number" will be added to the global object.</p>
<p>Note: You should not use the same global object for multiple interpreters.</p>
<p>This is due do the fact that the built-in properties are set in the constructor, and if these objects have been modified from another interpreter (e.g. a script modifying String.prototype), the changes will be overridden.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">global</td><td>The object to use as the global object for this interpreter </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00113">113</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9faf0dca72cd27223e5c447b580de2a5"></a><!-- doxytag: member="KJS::Interpreter::Interpreter" ref="a9faf0dca72cd27223e5c447b580de2a5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Interpreter::Interpreter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new interpreter. </p>
<p>A global object will be created and initialized with the standard global properties. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00118">118</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2f7e9fc6cb4e1e10f7b001cb7729d023"></a><!-- doxytag: member="KJS::Interpreter::builtinArray" ref="a2f7e9fc6cb4e1e10f7b001cb7729d023" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinArray </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Array" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00184">184</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa24b5c50fa1f820510b3f7f8f8c01e57"></a><!-- doxytag: member="KJS::Interpreter::builtinArrayPrototype" ref="aa24b5c50fa1f820510b3f7f8f8c01e57" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinArrayPrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Array.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00229">229</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a033ecdebcc9c3e49acb659038fc6be2f"></a><!-- doxytag: member="KJS::Interpreter::builtinBoolean" ref="a033ecdebcc9c3e49acb659038fc6be2f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinBoolean </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Boolean" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00189">189</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af669ef2547b7db4aa7f9452247a87677"></a><!-- doxytag: member="KJS::Interpreter::builtinBooleanPrototype" ref="af669ef2547b7db4aa7f9452247a87677" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinBooleanPrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Boolean.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00234">234</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6fd0ab80141d4983974e729298b5f3be"></a><!-- doxytag: member="KJS::Interpreter::builtinDate" ref="a6fd0ab80141d4983974e729298b5f3be" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinDate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Date" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00204">204</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1572761684c8789e56000e53c0b64a92"></a><!-- doxytag: member="KJS::Interpreter::builtinDatePrototype" ref="a1572761684c8789e56000e53c0b64a92" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinDatePrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Date.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00249">249</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac5426e7f4f5231bb95aaf677abdac5ee"></a><!-- doxytag: member="KJS::Interpreter::builtinError" ref="ac5426e7f4f5231bb95aaf677abdac5ee" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Error" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00214">214</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad02aee98b852a7ae0621279b1ac6b6da"></a><!-- doxytag: member="KJS::Interpreter::builtinErrorPrototype" ref="ad02aee98b852a7ae0621279b1ac6b6da" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinErrorPrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Error.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00259">259</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa3a2ce17664f47f38cb0b9dfd8f68d0b"></a><!-- doxytag: member="KJS::Interpreter::builtinEvalError" ref="aa3a2ce17664f47f38cb0b9dfd8f68d0b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinEvalError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The initial value of "Error" global property. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00264">264</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9596e12e9e9ae5bcba0094365dbd26ec"></a><!-- doxytag: member="KJS::Interpreter::builtinFunction" ref="a9596e12e9e9ae5bcba0094365dbd26ec" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinFunction </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Function" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00179">179</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4b90dee6a664e8f7cacca526b99c0613"></a><!-- doxytag: member="KJS::Interpreter::builtinFunctionPrototype" ref="a4b90dee6a664e8f7cacca526b99c0613" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinFunctionPrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Function.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00224">224</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adaca6baf31e48f80b44db8050a6db237"></a><!-- doxytag: member="KJS::Interpreter::builtinNumber" ref="adaca6baf31e48f80b44db8050a6db237" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinNumber </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Number" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00199">199</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abe07b8e3809048976edae972183e4e87"></a><!-- doxytag: member="KJS::Interpreter::builtinNumberPrototype" ref="abe07b8e3809048976edae972183e4e87" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinNumberPrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Number.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00244">244</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad467d009a322544d50af535549c9a18d"></a><!-- doxytag: member="KJS::Interpreter::builtinObject" ref="ad467d009a322544d50af535549c9a18d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinObject </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Object" object. </p>
<p>This is the object that was set as a property of the global object during construction; if the property is replaced by script code, this method will still return the original object.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The builtin "Object" object </dd></dl>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00174">174</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac3b61de9e5220f2322c28c8c06bbb7a5"></a><!-- doxytag: member="KJS::Interpreter::builtinObjectPrototype" ref="ac3b61de9e5220f2322c28c8c06bbb7a5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinObjectPrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "Object.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00219">219</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae4c66d318c8493caf8ed103ca2efb442"></a><!-- doxytag: member="KJS::Interpreter::builtinRegExp" ref="ae4c66d318c8493caf8ed103ca2efb442" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinRegExp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "RegExp" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00209">209</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a822c219a83cdf278b416c083097972f2"></a><!-- doxytag: member="KJS::Interpreter::builtinRegExpPrototype" ref="a822c219a83cdf278b416c083097972f2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinRegExpPrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "RegExp.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00254">254</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7920e625307cb936a3451533fc2b7c1e"></a><!-- doxytag: member="KJS::Interpreter::builtinString" ref="a7920e625307cb936a3451533fc2b7c1e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "String" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00194">194</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a91d8ba94c381e43ce59ecbf618bd2ac3"></a><!-- doxytag: member="KJS::Interpreter::builtinStringPrototype" ref="a91d8ba94c381e43ce59ecbf618bd2ac3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> Interpreter::builtinStringPrototype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the builtin "String.prototype" object. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00239">239</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a74fcc93c30dca80646d8a41c3c6f4509"></a><!-- doxytag: member="KJS::Interpreter::checkSyntax" ref="a74fcc93c30dca80646d8a41c3c6f4509" args="(const UString &amp;code, int *errLine, UString *errMsg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Interpreter::checkSyntax </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKJS_1_1UString.html">UString</a> &amp;&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>errLine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKJS_1_1UString.html">UString</a> *&#160;</td>
          <td class="paramname"><em>errMsg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses the supplied ECMAScript code and checks for syntax errors. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The code to check </td></tr>
    <tr><td class="paramname">errLine</td><td>Returns the line the error was on (if there was one). </td></tr>
    <tr><td class="paramname">errMsg</td><td>Returns the error message (if there was one). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if there were no syntax errors in the code, otherwise false </dd></dl>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00154">154</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6160ffd2f1240e22e9039be23a25c801"></a><!-- doxytag: member="KJS::Interpreter::checkSyntax" ref="a6160ffd2f1240e22e9039be23a25c801" args="(const UString &amp;code)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Interpreter::checkSyntax </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKJS_1_1UString.html">UString</a> &amp;&#160;</td>
          <td class="paramname"><em>code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses the supplied ECMAScript code and checks for syntax errors. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The code to check </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if there were no syntax errors in the code, otherwise false </dd></dl>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00159">159</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0afcdeb284f68f0788523bbd4647805c"></a><!-- doxytag: member="KJS::Interpreter::collect" ref="a0afcdeb284f68f0788523bbd4647805c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Interpreter::collect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Run the garbage collection. </p>
<p>Returns true when at least one object was collected; false otherwise. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00334">334</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a656d720cb34b3f614feaa67d4f6545ca"></a><!-- doxytag: member="KJS::Interpreter::evaluate" ref="a656d720cb34b3f614feaa67d4f6545ca" args="(const UString &amp;code, const Value &amp;thisV=Value())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Completion.html">Completion</a> Interpreter::evaluate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKJS_1_1UString.html">UString</a> &amp;&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classKJS_1_1Value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>thisV</em> = <code><a class="el" href="classKJS_1_1Value.html">Value</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Evaluates the supplied ECMAScript code. </p>
<p>Since this method returns a <a class="el" href="classKJS_1_1Completion.html" title="Completion objects are used to convey the return status and value from functions.">Completion</a>, you should check the type of completion to detect an error or before attempting to access the returned value. For example, if an error occurs during script execution and is not caught by the script, the completion type will be Throw.</p>
<p>If the supplied code is invalid, a SyntaxError will be thrown.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The code to evaluate </td></tr>
    <tr><td class="paramname">thisV</td><td>The value to pass in as the "this" value for the script execution. This should either be Null() or an <a class="el" href="classKJS_1_1Object.html" title="Represents an Object.">Object</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A completion object representing the result of the execution. </dd></dl>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00164">164</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aaeb5d4e2e8d30481851881a06f05a3e4"></a><!-- doxytag: member="KJS::Interpreter::globalExec" ref="aaeb5d4e2e8d30481851881a06f05a3e4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1ExecState.html">ExecState</a> * Interpreter::globalExec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the execution state object which can be used to execute scripts using this interpreter at a the "global" level, i.e. </p>
<p>one with a execution context that has the global object as the "this" value, and who's scope chain contains only the global object.</p>
<p>Note: this pointer remains constant for the life of the interpreter and should not be manually deleted.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The interpreter global execution state object </dd></dl>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00149">149</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6d4867616475f8bca54549e910ae1344"></a><!-- doxytag: member="KJS::Interpreter::globalObject" ref="a6d4867616475f8bca54549e910ae1344" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKJS_1_1Object.html">Object</a> &amp; Interpreter::globalObject </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the object that is used as the global object during all script execution performed by this interpreter. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00129">129</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab8936a99429d275b3c1bd6f97a5527e3"></a><!-- doxytag: member="KJS::Interpreter::mark" ref="ab8936a99429d275b3c1bd6f97a5527e3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KJS::Interpreter::mark </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Called by InterpreterImp during the mark phase of the garbage collector Default implementation does nothing, this exist for classes that reimplement <a class="el" href="classKJS_1_1Interpreter.html" title="Interpreter objects can be used to evaluate ECMAScript code.">Interpreter</a>. </p>

<p>Definition at line <a class="el" href="interpreter_8h_source.html#l00398">398</a> of file <a class="el" href="interpreter_8h_source.html">interpreter.h</a>.</p>

</div>
</div>
<a class="anchor" id="a50e5a3db76f1a151362ceec9a6bd3434"></a><!-- doxytag: member="KJS::Interpreter::rtti" ref="a50e5a3db76f1a151362ceec9a6bd3434" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int KJS::Interpreter::rtti </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides a way to distinguish derived classes. </p>
<p>Only useful if you reimplement <a class="el" href="classKJS_1_1Interpreter.html" title="Interpreter objects can be used to evaluate ECMAScript code.">Interpreter</a> and if different kind of interpreters are created in the same process. The base class returns 0, the ECMA-bindings interpreter returns 1. </p>

<p>Definition at line <a class="el" href="interpreter_8h_source.html#l00406">406</a> of file <a class="el" href="interpreter_8h_source.html">interpreter.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa71b6122001e49c40c67cbaf57db7abf"></a><!-- doxytag: member="KJS::Interpreter::setCompatMode" ref="aa71b6122001e49c40c67cbaf57db7abf" args="(CompatMode mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Interpreter::setCompatMode </td>
          <td>(</td>
          <td class="paramtype">CompatMode&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Call this to enable a compatibility mode with another browser. </p>
<p>(by default konqueror is in "native mode"). Currently, in KJS, this only changes the behavior of Date::getYear() which returns the full year under IE. </p>

<p>Definition at line <a class="el" href="interpreter_8cpp_source.html#l00324">324</a> of file <a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="interpreter_8h_source.html">interpreter.h</a></li>
<li><a class="el" href="interpreter_8cpp_source.html">interpreter.cpp</a></li>
</ul>
</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>