~ubuntu-branches/ubuntu/karmic/rhino/karmic

« back to all changes in this revision

Viewing changes to docs/apidocs/org/mozilla/javascript/ScriptableObject.html

  • Committer: Bazaar Package Importer
  • Author(s): Jerry Haltom
  • Date: 2005-03-19 16:56:07 UTC
  • mto: (11.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050319165607-geu3j3fnqlkpqkh1
Tags: upstream-1.6.R1
ImportĀ upstreamĀ versionĀ 1.6.R1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc (build 1.4.2_05) on Tue Nov 30 22:11:30 EST 2004 -->
 
6
<TITLE>
 
7
ScriptableObject (Rhino)
 
8
</TITLE>
 
9
 
 
10
<META NAME="keywords" CONTENT="org.mozilla.javascript.ScriptableObject class">
 
11
 
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
 
13
 
 
14
<SCRIPT type="text/javascript">
 
15
function windowTitle()
 
16
{
 
17
    parent.document.title="ScriptableObject (Rhino)";
 
18
}
 
19
</SCRIPT>
 
20
 
 
21
</HEAD>
 
22
 
 
23
<BODY BGCOLOR="white" onload="windowTitle();">
 
24
 
 
25
 
 
26
<!-- ========= START OF TOP NAVBAR ======= -->
 
27
<A NAME="navbar_top"><!-- --></A>
 
28
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 
29
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
30
<TR>
 
31
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
32
<A NAME="navbar_top_firstrow"><!-- --></A>
 
33
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
34
  <TR ALIGN="center" VALIGN="top">
 
35
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
36
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
37
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
42
  </TR>
 
43
</TABLE>
 
44
</TD>
 
45
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
46
</EM>
 
47
</TD>
 
48
</TR>
 
49
 
 
50
<TR>
 
51
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
52
&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript"><B>PREV CLASS</B></A>&nbsp;
 
53
&nbsp;<A HREF="../../../org/mozilla/javascript/SecurityController.html" title="class in org.mozilla.javascript"><B>NEXT CLASS</B></A></FONT></TD>
 
54
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
55
  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
56
&nbsp;<A HREF="ScriptableObject.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
57
&nbsp;<SCRIPT type="text/javascript">
 
58
  <!--
 
59
  if(window==top) {
 
60
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
61
  }
 
62
  //-->
 
63
</SCRIPT>
 
64
<NOSCRIPT>
 
65
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
 
66
</NOSCRIPT>
 
67
 
 
68
</FONT></TD>
 
69
</TR>
 
70
<TR>
 
71
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
72
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
73
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
74
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
75
</TR>
 
76
</TABLE>
 
77
<A NAME="skip-navbar_top"></A>
 
78
<!-- ========= END OF TOP NAVBAR ========= -->
 
79
 
 
80
<HR>
 
81
<!-- ======== START OF CLASS DATA ======== -->
 
82
<H2>
 
83
<FONT SIZE="-1">
 
84
org.mozilla.javascript</FONT>
 
85
<BR>
 
86
Class ScriptableObject</H2>
 
87
<PRE>
 
88
java.lang.Object
 
89
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.mozilla.javascript.ScriptableObject</B>
 
90
</PRE>
 
91
<DL>
 
92
<DT><B>All Implemented Interfaces:</B> <DD>org.mozilla.javascript.debug.DebuggableObject, <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>, java.io.Serializable</DD>
 
93
</DL>
 
94
<DL>
 
95
<DT><B>Direct Known Subclasses:</B> <DD>org.mozilla.javascript.IdScriptableObject</DD>
 
96
</DL>
 
97
<HR>
 
98
<DL>
 
99
<DT>public abstract class <B>ScriptableObject</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>, java.io.Serializable, org.mozilla.javascript.debug.DebuggableObject</DL>
 
100
 
 
101
<P>
 
102
This is the default implementation of the Scriptable interface. This
 
103
 class provides convenient default behavior that makes it easier to
 
104
 define host objects.
 
105
 <p>
 
106
 Various properties and methods of JavaScript objects can be conveniently
 
107
 defined using methods of ScriptableObject.
 
108
 <p>
 
109
 Classes extending ScriptableObject must define the getClassName method.
 
110
<P>
 
111
 
 
112
<P>
 
113
<DL>
 
114
<DT><B>Author:</B></DT>
 
115
  <DD>Norris Boyd</DD>
 
116
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript"><CODE>Scriptable</CODE></A>, 
 
117
<A HREF="../../../serialized-form.html#org.mozilla.javascript.ScriptableObject">Serialized Form</A></DL>
 
118
<HR>
 
119
 
 
120
<P>
 
121
<!-- ======== NESTED CLASS SUMMARY ======== -->
 
122
 
 
123
 
 
124
<!-- =========== FIELD SUMMARY =========== -->
 
125
 
 
126
<A NAME="field_summary"><!-- --></A>
 
127
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
128
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
129
<TD COLSPAN=2><FONT SIZE="+2">
 
130
<B>Field Summary</B></FONT></TD>
 
131
</TR>
 
132
<TR BGCOLOR="white" CLASS="TableRowColor">
 
133
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
134
<CODE>static&nbsp;int</CODE></FONT></TD>
 
135
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#DONTENUM">DONTENUM</A></B></CODE>
 
136
 
 
137
<BR>
 
138
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Property attribute indicating property is not enumerated.</TD>
 
139
</TR>
 
140
<TR BGCOLOR="white" CLASS="TableRowColor">
 
141
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
142
<CODE>static&nbsp;int</CODE></FONT></TD>
 
143
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#EMPTY">EMPTY</A></B></CODE>
 
144
 
 
145
<BR>
 
146
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The empty property attribute.</TD>
 
147
</TR>
 
148
<TR BGCOLOR="white" CLASS="TableRowColor">
 
149
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
150
<CODE>static&nbsp;int</CODE></FONT></TD>
 
151
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#PERMANENT">PERMANENT</A></B></CODE>
 
152
 
 
153
<BR>
 
154
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Property attribute indicating property cannot be deleted.</TD>
 
155
</TR>
 
156
<TR BGCOLOR="white" CLASS="TableRowColor">
 
157
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
158
<CODE>static&nbsp;int</CODE></FONT></TD>
 
159
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#READONLY">READONLY</A></B></CODE>
 
160
 
 
161
<BR>
 
162
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Property attribute indicating assignment to this property is ignored.</TD>
 
163
</TR>
 
164
</TABLE>
 
165
&nbsp;<A NAME="fields_inherited_from_class_org.mozilla.javascript.Scriptable"><!-- --></A>
 
166
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
167
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
168
<TD><B>Fields inherited from interface org.mozilla.javascript.<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></B></TD>
 
169
</TR>
 
170
<TR BGCOLOR="white" CLASS="TableRowColor">
 
171
<TD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#NOT_FOUND">NOT_FOUND</A></CODE></TD>
 
172
</TR>
 
173
</TABLE>
 
174
&nbsp;
 
175
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
176
 
 
177
<A NAME="constructor_summary"><!-- --></A>
 
178
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
179
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
180
<TD COLSPAN=2><FONT SIZE="+2">
 
181
<B>Constructor Summary</B></FONT></TD>
 
182
</TR>
 
183
<TR BGCOLOR="white" CLASS="TableRowColor">
 
184
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#ScriptableObject()">ScriptableObject</A></B>()</CODE>
 
185
 
 
186
<BR>
 
187
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
188
</TR>
 
189
<TR BGCOLOR="white" CLASS="TableRowColor">
 
190
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#ScriptableObject(org.mozilla.javascript.Scriptable, org.mozilla.javascript.Scriptable)">ScriptableObject</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
191
                 <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;prototype)</CODE>
 
192
 
 
193
<BR>
 
194
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
195
</TR>
 
196
</TABLE>
 
197
&nbsp;
 
198
<!-- ========== METHOD SUMMARY =========== -->
 
199
 
 
200
<A NAME="method_summary"><!-- --></A>
 
201
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
202
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
203
<TD COLSPAN=2><FONT SIZE="+2">
 
204
<B>Method Summary</B></FONT></TD>
 
205
</TR>
 
206
<TR BGCOLOR="white" CLASS="TableRowColor">
 
207
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
208
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
 
209
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#associateValue(java.lang.Object, java.lang.Object)">associateValue</A></B>(java.lang.Object&nbsp;key,
 
210
               java.lang.Object&nbsp;value)</CODE>
 
211
 
 
212
<BR>
 
213
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Associate arbitrary application-specific value with this object.</TD>
 
214
</TR>
 
215
<TR BGCOLOR="white" CLASS="TableRowColor">
 
216
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
217
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
 
218
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#callMethod(org.mozilla.javascript.Context, org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object[])">callMethod</A></B>(<A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A>&nbsp;cx,
 
219
           <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
220
           java.lang.String&nbsp;methodName,
 
221
           java.lang.Object[]&nbsp;args)</CODE>
 
222
 
 
223
<BR>
 
224
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call a method of an object.</TD>
 
225
</TR>
 
226
<TR BGCOLOR="white" CLASS="TableRowColor">
 
227
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
228
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
 
229
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#callMethod(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object[])">callMethod</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
230
           java.lang.String&nbsp;methodName,
 
231
           java.lang.Object[]&nbsp;args)</CODE>
 
232
 
 
233
<BR>
 
234
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call a method of an object.</TD>
 
235
</TR>
 
236
<TR BGCOLOR="white" CLASS="TableRowColor">
 
237
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
238
<CODE>static&nbsp;void</CODE></FONT></TD>
 
239
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#defineClass(org.mozilla.javascript.Scriptable, java.lang.Class)">defineClass</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
240
            java.lang.Class&nbsp;clazz)</CODE>
 
241
 
 
242
<BR>
 
243
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Defines JavaScript objects from a Java class that implements Scriptable.</TD>
 
244
</TR>
 
245
<TR BGCOLOR="white" CLASS="TableRowColor">
 
246
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
247
<CODE>static&nbsp;void</CODE></FONT></TD>
 
248
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#defineClass(org.mozilla.javascript.Scriptable, java.lang.Class, boolean)">defineClass</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
249
            java.lang.Class&nbsp;clazz,
 
250
            boolean&nbsp;sealed)</CODE>
 
251
 
 
252
<BR>
 
253
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Defines JavaScript objects from a Java class, optionally
 
254
 allowing sealing.</TD>
 
255
</TR>
 
256
<TR BGCOLOR="white" CLASS="TableRowColor">
 
257
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
258
<CODE>&nbsp;void</CODE></FONT></TD>
 
259
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#defineFunctionProperties(java.lang.String[], java.lang.Class, int)">defineFunctionProperties</A></B>(java.lang.String[]&nbsp;names,
 
260
                         java.lang.Class&nbsp;clazz,
 
261
                         int&nbsp;attributes)</CODE>
 
262
 
 
263
<BR>
 
264
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Search for names in a class, adding the resulting methods
 
265
 as properties.</TD>
 
266
</TR>
 
267
<TR BGCOLOR="white" CLASS="TableRowColor">
 
268
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
269
<CODE>static&nbsp;void</CODE></FONT></TD>
 
270
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#defineProperty(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object, int)">defineProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;destination,
 
271
               java.lang.String&nbsp;propertyName,
 
272
               java.lang.Object&nbsp;value,
 
273
               int&nbsp;attributes)</CODE>
 
274
 
 
275
<BR>
 
276
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Utility method to add properties to arbitrary Scriptable object.</TD>
 
277
</TR>
 
278
<TR BGCOLOR="white" CLASS="TableRowColor">
 
279
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
280
<CODE>&nbsp;void</CODE></FONT></TD>
 
281
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#defineProperty(java.lang.String, java.lang.Class, int)">defineProperty</A></B>(java.lang.String&nbsp;propertyName,
 
282
               java.lang.Class&nbsp;clazz,
 
283
               int&nbsp;attributes)</CODE>
 
284
 
 
285
<BR>
 
286
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Define a JavaScript property with getter and setter side effects.</TD>
 
287
</TR>
 
288
<TR BGCOLOR="white" CLASS="TableRowColor">
 
289
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
290
<CODE>&nbsp;void</CODE></FONT></TD>
 
291
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#defineProperty(java.lang.String, java.lang.Object, int)">defineProperty</A></B>(java.lang.String&nbsp;propertyName,
 
292
               java.lang.Object&nbsp;value,
 
293
               int&nbsp;attributes)</CODE>
 
294
 
 
295
<BR>
 
296
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Define a JavaScript property.</TD>
 
297
</TR>
 
298
<TR BGCOLOR="white" CLASS="TableRowColor">
 
299
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
300
<CODE>&nbsp;void</CODE></FONT></TD>
 
301
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#defineProperty(java.lang.String, java.lang.Object, java.lang.reflect.Method, java.lang.reflect.Method, int)">defineProperty</A></B>(java.lang.String&nbsp;propertyName,
 
302
               java.lang.Object&nbsp;delegateTo,
 
303
               java.lang.reflect.Method&nbsp;getter,
 
304
               java.lang.reflect.Method&nbsp;setter,
 
305
               int&nbsp;attributes)</CODE>
 
306
 
 
307
<BR>
 
308
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Define a JavaScript property.</TD>
 
309
</TR>
 
310
<TR BGCOLOR="white" CLASS="TableRowColor">
 
311
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
312
<CODE>&nbsp;void</CODE></FONT></TD>
 
313
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#delete(int)">delete</A></B>(int&nbsp;index)</CODE>
 
314
 
 
315
<BR>
 
316
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the indexed property from the object.</TD>
 
317
</TR>
 
318
<TR BGCOLOR="white" CLASS="TableRowColor">
 
319
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
320
<CODE>&nbsp;void</CODE></FONT></TD>
 
321
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#delete(java.lang.String)">delete</A></B>(java.lang.String&nbsp;name)</CODE>
 
322
 
 
323
<BR>
 
324
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a named property from the object.</TD>
 
325
</TR>
 
326
<TR BGCOLOR="white" CLASS="TableRowColor">
 
327
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
328
<CODE>static&nbsp;boolean</CODE></FONT></TD>
 
329
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#deleteProperty(org.mozilla.javascript.Scriptable, int)">deleteProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
330
               int&nbsp;index)</CODE>
 
331
 
 
332
<BR>
 
333
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the property from an object or its prototype chain.</TD>
 
334
</TR>
 
335
<TR BGCOLOR="white" CLASS="TableRowColor">
 
336
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
337
<CODE>static&nbsp;boolean</CODE></FONT></TD>
 
338
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#deleteProperty(org.mozilla.javascript.Scriptable, java.lang.String)">deleteProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
339
               java.lang.String&nbsp;name)</CODE>
 
340
 
 
341
<BR>
 
342
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the property from an object or its prototype chain.</TD>
 
343
</TR>
 
344
<TR BGCOLOR="white" CLASS="TableRowColor">
 
345
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
346
<CODE>protected &nbsp;java.lang.Object</CODE></FONT></TD>
 
347
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#equivalentValues(java.lang.Object)">equivalentValues</A></B>(java.lang.Object&nbsp;value)</CODE>
 
348
 
 
349
<BR>
 
350
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Custom <tt>==</tt> operator.</TD>
 
351
</TR>
 
352
<TR BGCOLOR="white" CLASS="TableRowColor">
 
353
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
354
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
 
355
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#get(int, org.mozilla.javascript.Scriptable)">get</A></B>(int&nbsp;index,
 
356
    <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</CODE>
 
357
 
 
358
<BR>
 
359
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of the indexed property or NOT_FOUND.</TD>
 
360
</TR>
 
361
<TR BGCOLOR="white" CLASS="TableRowColor">
 
362
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
363
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
 
364
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#get(java.lang.String, org.mozilla.javascript.Scriptable)">get</A></B>(java.lang.String&nbsp;name,
 
365
    <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</CODE>
 
366
 
 
367
<BR>
 
368
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of the named property or NOT_FOUND.</TD>
 
369
</TR>
 
370
<TR BGCOLOR="white" CLASS="TableRowColor">
 
371
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
372
<CODE>&nbsp;java.lang.Object[]</CODE></FONT></TD>
 
373
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAllIds()">getAllIds</A></B>()</CODE>
 
374
 
 
375
<BR>
 
376
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of ids for the properties of the object.</TD>
 
377
</TR>
 
378
<TR BGCOLOR="white" CLASS="TableRowColor">
 
379
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
380
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
 
381
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAssociatedValue(java.lang.Object)">getAssociatedValue</A></B>(java.lang.Object&nbsp;key)</CODE>
 
382
 
 
383
<BR>
 
384
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get arbitrary application-specific value associated with this object.</TD>
 
385
</TR>
 
386
<TR BGCOLOR="white" CLASS="TableRowColor">
 
387
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
388
<CODE>&nbsp;int</CODE></FONT></TD>
 
389
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(int)">getAttributes</A></B>(int&nbsp;index)</CODE>
 
390
 
 
391
<BR>
 
392
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the attributes of an indexed property.</TD>
 
393
</TR>
 
394
<TR BGCOLOR="white" CLASS="TableRowColor">
 
395
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
396
<CODE>&nbsp;int</CODE></FONT></TD>
 
397
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(int, org.mozilla.javascript.Scriptable)">getAttributes</A></B>(int&nbsp;index,
 
398
              <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</CODE>
 
399
 
 
400
<BR>
 
401
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(int)"><CODE>getAttributes(int index)</CODE></A>. The engine always
 
402
 ignored the start argument.</I></TD>
 
403
</TR>
 
404
<TR BGCOLOR="white" CLASS="TableRowColor">
 
405
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
406
<CODE>&nbsp;int</CODE></FONT></TD>
 
407
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(java.lang.String)">getAttributes</A></B>(java.lang.String&nbsp;name)</CODE>
 
408
 
 
409
<BR>
 
410
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the attributes of a named property.</TD>
 
411
</TR>
 
412
<TR BGCOLOR="white" CLASS="TableRowColor">
 
413
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
414
<CODE>&nbsp;int</CODE></FONT></TD>
 
415
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)">getAttributes</A></B>(java.lang.String&nbsp;name,
 
416
              <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</CODE>
 
417
 
 
418
<BR>
 
419
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(java.lang.String)"><CODE>getAttributes(String name)</CODE></A>. The engine always
 
420
 ignored the start argument.</I></TD>
 
421
</TR>
 
422
<TR BGCOLOR="white" CLASS="TableRowColor">
 
423
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
424
<CODE>abstract &nbsp;java.lang.String</CODE></FONT></TD>
 
425
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getClassName()">getClassName</A></B>()</CODE>
 
426
 
 
427
<BR>
 
428
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the name of the class.</TD>
 
429
</TR>
 
430
<TR BGCOLOR="white" CLASS="TableRowColor">
 
431
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
432
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
 
433
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getClassPrototype(org.mozilla.javascript.Scriptable, java.lang.String)">getClassPrototype</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
434
                  java.lang.String&nbsp;className)</CODE>
 
435
 
 
436
<BR>
 
437
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the prototype for the named class.</TD>
 
438
</TR>
 
439
<TR BGCOLOR="white" CLASS="TableRowColor">
 
440
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
441
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
 
442
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getDefaultValue(java.lang.Class)">getDefaultValue</A></B>(java.lang.Class&nbsp;typeHint)</CODE>
 
443
 
 
444
<BR>
 
445
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implements the [[DefaultValue]] internal method.</TD>
 
446
</TR>
 
447
<TR BGCOLOR="white" CLASS="TableRowColor">
 
448
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
449
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
 
450
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getFunctionPrototype(org.mozilla.javascript.Scriptable)">getFunctionPrototype</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</CODE>
 
451
 
 
452
<BR>
 
453
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the Function.prototype property.</TD>
 
454
</TR>
 
455
<TR BGCOLOR="white" CLASS="TableRowColor">
 
456
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
457
<CODE>&nbsp;java.lang.Object[]</CODE></FONT></TD>
 
458
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getIds()">getIds</A></B>()</CODE>
 
459
 
 
460
<BR>
 
461
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of ids for the properties of the object.</TD>
 
462
</TR>
 
463
<TR BGCOLOR="white" CLASS="TableRowColor">
 
464
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
465
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
 
466
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getObjectPrototype(org.mozilla.javascript.Scriptable)">getObjectPrototype</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</CODE>
 
467
 
 
468
<BR>
 
469
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the Object.prototype property.</TD>
 
470
</TR>
 
471
<TR BGCOLOR="white" CLASS="TableRowColor">
 
472
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
473
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
 
474
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getParentScope()">getParentScope</A></B>()</CODE>
 
475
 
 
476
<BR>
 
477
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the parent (enclosing) scope of the object.</TD>
 
478
</TR>
 
479
<TR BGCOLOR="white" CLASS="TableRowColor">
 
480
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
481
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
 
482
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getProperty(org.mozilla.javascript.Scriptable, int)">getProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
483
            int&nbsp;index)</CODE>
 
484
 
 
485
<BR>
 
486
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an indexed property from an object or any object in its prototype chain.</TD>
 
487
</TR>
 
488
<TR BGCOLOR="white" CLASS="TableRowColor">
 
489
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
490
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
 
491
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getProperty(org.mozilla.javascript.Scriptable, java.lang.String)">getProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
492
            java.lang.String&nbsp;name)</CODE>
 
493
 
 
494
<BR>
 
495
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a named property from an object or any object in its prototype chain.</TD>
 
496
</TR>
 
497
<TR BGCOLOR="white" CLASS="TableRowColor">
 
498
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
499
<CODE>static&nbsp;java.lang.Object[]</CODE></FONT></TD>
 
500
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getPropertyIds(org.mozilla.javascript.Scriptable)">getPropertyIds</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj)</CODE>
 
501
 
 
502
<BR>
 
503
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of all ids from an object and its prototypes.</TD>
 
504
</TR>
 
505
<TR BGCOLOR="white" CLASS="TableRowColor">
 
506
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
507
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
 
508
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getPrototype()">getPrototype</A></B>()</CODE>
 
509
 
 
510
<BR>
 
511
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the prototype of the object.</TD>
 
512
</TR>
 
513
<TR BGCOLOR="white" CLASS="TableRowColor">
 
514
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
515
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
 
516
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getTopLevelScope(org.mozilla.javascript.Scriptable)">getTopLevelScope</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj)</CODE>
 
517
 
 
518
<BR>
 
519
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the global scope.</TD>
 
520
</TR>
 
521
<TR BGCOLOR="white" CLASS="TableRowColor">
 
522
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
523
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
 
524
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getTopScopeValue(org.mozilla.javascript.Scriptable, java.lang.Object)">getTopScopeValue</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
525
                 java.lang.Object&nbsp;key)</CODE>
 
526
 
 
527
<BR>
 
528
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get arbitrary application-specific value associated with the top scope
 
529
 of the given scope.</TD>
 
530
</TR>
 
531
<TR BGCOLOR="white" CLASS="TableRowColor">
 
532
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
533
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
534
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#has(int, org.mozilla.javascript.Scriptable)">has</A></B>(int&nbsp;index,
 
535
    <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</CODE>
 
536
 
 
537
<BR>
 
538
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the property index is defined.</TD>
 
539
</TR>
 
540
<TR BGCOLOR="white" CLASS="TableRowColor">
 
541
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
542
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
543
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#has(java.lang.String, org.mozilla.javascript.Scriptable)">has</A></B>(java.lang.String&nbsp;name,
 
544
    <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</CODE>
 
545
 
 
546
<BR>
 
547
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the named property is defined.</TD>
 
548
</TR>
 
549
<TR BGCOLOR="white" CLASS="TableRowColor">
 
550
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
551
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
552
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#hasInstance(org.mozilla.javascript.Scriptable)">hasInstance</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;instance)</CODE>
 
553
 
 
554
<BR>
 
555
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implements the instanceof operator.</TD>
 
556
</TR>
 
557
<TR BGCOLOR="white" CLASS="TableRowColor">
 
558
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
559
<CODE>static&nbsp;boolean</CODE></FONT></TD>
 
560
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#hasProperty(org.mozilla.javascript.Scriptable, int)">hasProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
561
            int&nbsp;index)</CODE>
 
562
 
 
563
<BR>
 
564
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether an indexed property is defined in an object or any object
 
565
 in its prototype chain.</TD>
 
566
</TR>
 
567
<TR BGCOLOR="white" CLASS="TableRowColor">
 
568
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
569
<CODE>static&nbsp;boolean</CODE></FONT></TD>
 
570
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#hasProperty(org.mozilla.javascript.Scriptable, java.lang.String)">hasProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
571
            java.lang.String&nbsp;name)</CODE>
 
572
 
 
573
<BR>
 
574
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether a named property is defined in an object or any object
 
575
 in its prototype chain.</TD>
 
576
</TR>
 
577
<TR BGCOLOR="white" CLASS="TableRowColor">
 
578
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
579
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
580
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#isSealed()">isSealed</A></B>()</CODE>
 
581
 
 
582
<BR>
 
583
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if this object is sealed.</TD>
 
584
</TR>
 
585
<TR BGCOLOR="white" CLASS="TableRowColor">
 
586
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
587
<CODE>&nbsp;void</CODE></FONT></TD>
 
588
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#put(int, org.mozilla.javascript.Scriptable, java.lang.Object)">put</A></B>(int&nbsp;index,
 
589
    <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start,
 
590
    java.lang.Object&nbsp;value)</CODE>
 
591
 
 
592
<BR>
 
593
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of the indexed property, creating it if need be.</TD>
 
594
</TR>
 
595
<TR BGCOLOR="white" CLASS="TableRowColor">
 
596
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
597
<CODE>&nbsp;void</CODE></FONT></TD>
 
598
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)">put</A></B>(java.lang.String&nbsp;name,
 
599
    <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start,
 
600
    java.lang.Object&nbsp;value)</CODE>
 
601
 
 
602
<BR>
 
603
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of the named property, creating it if need be.</TD>
 
604
</TR>
 
605
<TR BGCOLOR="white" CLASS="TableRowColor">
 
606
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
607
<CODE>static&nbsp;void</CODE></FONT></TD>
 
608
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#putProperty(org.mozilla.javascript.Scriptable, int, java.lang.Object)">putProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
609
            int&nbsp;index,
 
610
            java.lang.Object&nbsp;value)</CODE>
 
611
 
 
612
<BR>
 
613
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Puts an indexed property in an object or in an object in its prototype chain.</TD>
 
614
</TR>
 
615
<TR BGCOLOR="white" CLASS="TableRowColor">
 
616
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
617
<CODE>static&nbsp;void</CODE></FONT></TD>
 
618
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#putProperty(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object)">putProperty</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
619
            java.lang.String&nbsp;name,
 
620
            java.lang.Object&nbsp;value)</CODE>
 
621
 
 
622
<BR>
 
623
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Puts a named property in an object or in an object in its prototype chain.</TD>
 
624
</TR>
 
625
<TR BGCOLOR="white" CLASS="TableRowColor">
 
626
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
627
<CODE>&nbsp;void</CODE></FONT></TD>
 
628
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#sealObject()">sealObject</A></B>()</CODE>
 
629
 
 
630
<BR>
 
631
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Seal this object.</TD>
 
632
</TR>
 
633
<TR BGCOLOR="white" CLASS="TableRowColor">
 
634
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
635
<CODE>&nbsp;void</CODE></FONT></TD>
 
636
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(int, int)">setAttributes</A></B>(int&nbsp;index,
 
637
              int&nbsp;attributes)</CODE>
 
638
 
 
639
<BR>
 
640
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the attributes of an indexed property.</TD>
 
641
</TR>
 
642
<TR BGCOLOR="white" CLASS="TableRowColor">
 
643
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
644
<CODE>&nbsp;void</CODE></FONT></TD>
 
645
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(int, org.mozilla.javascript.Scriptable, int)">setAttributes</A></B>(int&nbsp;index,
 
646
              <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start,
 
647
              int&nbsp;attributes)</CODE>
 
648
 
 
649
<BR>
 
650
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(int, int)"><CODE>setAttributes(int index, int attributes)</CODE></A>.
 
651
 The engine always ignored the start argument.</I></TD>
 
652
</TR>
 
653
<TR BGCOLOR="white" CLASS="TableRowColor">
 
654
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
655
<CODE>&nbsp;void</CODE></FONT></TD>
 
656
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(java.lang.String, int)">setAttributes</A></B>(java.lang.String&nbsp;name,
 
657
              int&nbsp;attributes)</CODE>
 
658
 
 
659
<BR>
 
660
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the attributes of a named property.</TD>
 
661
</TR>
 
662
<TR BGCOLOR="white" CLASS="TableRowColor">
 
663
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
664
<CODE>&nbsp;void</CODE></FONT></TD>
 
665
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)">setAttributes</A></B>(java.lang.String&nbsp;name,
 
666
              <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start,
 
667
              int&nbsp;attributes)</CODE>
 
668
 
 
669
<BR>
 
670
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(java.lang.String, int)"><CODE>setAttributes(String name, int attributes)</CODE></A>.
 
671
 The engine always ignored the start argument.</I></TD>
 
672
</TR>
 
673
<TR BGCOLOR="white" CLASS="TableRowColor">
 
674
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
675
<CODE>&nbsp;void</CODE></FONT></TD>
 
676
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setParentScope(org.mozilla.javascript.Scriptable)">setParentScope</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;m)</CODE>
 
677
 
 
678
<BR>
 
679
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the parent (enclosing) scope of the object.</TD>
 
680
</TR>
 
681
<TR BGCOLOR="white" CLASS="TableRowColor">
 
682
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
683
<CODE>&nbsp;void</CODE></FONT></TD>
 
684
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setPrototype(org.mozilla.javascript.Scriptable)">setPrototype</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;m)</CODE>
 
685
 
 
686
<BR>
 
687
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the prototype of the object.</TD>
 
688
</TR>
 
689
</TABLE>
 
690
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
691
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
692
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
693
<TD><B>Methods inherited from class java.lang.Object</B></TD>
 
694
</TR>
 
695
<TR BGCOLOR="white" CLASS="TableRowColor">
 
696
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
 
697
</TR>
 
698
</TABLE>
 
699
&nbsp;
 
700
<P>
 
701
 
 
702
<!-- ============ FIELD DETAIL =========== -->
 
703
 
 
704
<A NAME="field_detail"><!-- --></A>
 
705
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
706
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
707
<TD COLSPAN=1><FONT SIZE="+2">
 
708
<B>Field Detail</B></FONT></TD>
 
709
</TR>
 
710
</TABLE>
 
711
 
 
712
<A NAME="EMPTY"><!-- --></A><H3>
 
713
EMPTY</H3>
 
714
<PRE>
 
715
public static final int <B>EMPTY</B></PRE>
 
716
<DL>
 
717
<DD>The empty property attribute.
 
718
 
 
719
 Used by getAttributes() and setAttributes().
 
720
<P>
 
721
<DL>
 
722
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
723
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)"><CODE>setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)</CODE></A>, 
 
724
<A HREF="../../../constant-values.html#org.mozilla.javascript.ScriptableObject.EMPTY">Constant Field Values</A></DL>
 
725
</DL>
 
726
<HR>
 
727
 
 
728
<A NAME="READONLY"><!-- --></A><H3>
 
729
READONLY</H3>
 
730
<PRE>
 
731
public static final int <B>READONLY</B></PRE>
 
732
<DL>
 
733
<DD>Property attribute indicating assignment to this property is ignored.
 
734
<P>
 
735
<DL>
 
736
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)"><CODE>put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)</CODE></A>, 
 
737
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
738
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)"><CODE>setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)</CODE></A>, 
 
739
<A HREF="../../../constant-values.html#org.mozilla.javascript.ScriptableObject.READONLY">Constant Field Values</A></DL>
 
740
</DL>
 
741
<HR>
 
742
 
 
743
<A NAME="DONTENUM"><!-- --></A><H3>
 
744
DONTENUM</H3>
 
745
<PRE>
 
746
public static final int <B>DONTENUM</B></PRE>
 
747
<DL>
 
748
<DD>Property attribute indicating property is not enumerated.
 
749
 
 
750
 Only enumerated properties will be returned by getIds().
 
751
<P>
 
752
<DL>
 
753
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getIds()"><CODE>getIds()</CODE></A>, 
 
754
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
755
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)"><CODE>setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)</CODE></A>, 
 
756
<A HREF="../../../constant-values.html#org.mozilla.javascript.ScriptableObject.DONTENUM">Constant Field Values</A></DL>
 
757
</DL>
 
758
<HR>
 
759
 
 
760
<A NAME="PERMANENT"><!-- --></A><H3>
 
761
PERMANENT</H3>
 
762
<PRE>
 
763
public static final int <B>PERMANENT</B></PRE>
 
764
<DL>
 
765
<DD>Property attribute indicating property cannot be deleted.
 
766
<P>
 
767
<DL>
 
768
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#delete(java.lang.String)"><CODE>delete(java.lang.String)</CODE></A>, 
 
769
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
770
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)"><CODE>setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)</CODE></A>, 
 
771
<A HREF="../../../constant-values.html#org.mozilla.javascript.ScriptableObject.PERMANENT">Constant Field Values</A></DL>
 
772
</DL>
 
773
 
 
774
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
775
 
 
776
<A NAME="constructor_detail"><!-- --></A>
 
777
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
778
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
779
<TD COLSPAN=1><FONT SIZE="+2">
 
780
<B>Constructor Detail</B></FONT></TD>
 
781
</TR>
 
782
</TABLE>
 
783
 
 
784
<A NAME="ScriptableObject()"><!-- --></A><H3>
 
785
ScriptableObject</H3>
 
786
<PRE>
 
787
public <B>ScriptableObject</B>()</PRE>
 
788
<DL>
 
789
</DL>
 
790
<HR>
 
791
 
 
792
<A NAME="ScriptableObject(org.mozilla.javascript.Scriptable, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
793
ScriptableObject</H3>
 
794
<PRE>
 
795
public <B>ScriptableObject</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
796
                        <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;prototype)</PRE>
 
797
<DL>
 
798
</DL>
 
799
 
 
800
<!-- ============ METHOD DETAIL ========== -->
 
801
 
 
802
<A NAME="method_detail"><!-- --></A>
 
803
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
804
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
805
<TD COLSPAN=1><FONT SIZE="+2">
 
806
<B>Method Detail</B></FONT></TD>
 
807
</TR>
 
808
</TABLE>
 
809
 
 
810
<A NAME="getClassName()"><!-- --></A><H3>
 
811
getClassName</H3>
 
812
<PRE>
 
813
public abstract java.lang.String <B>getClassName</B>()</PRE>
 
814
<DL>
 
815
<DD>Return the name of the class.
 
816
 
 
817
 This is typically the same name as the constructor.
 
818
 Classes extending ScriptableObject must implement this abstract
 
819
 method.
 
820
<P>
 
821
<DD><DL>
 
822
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#getClassName()">getClassName</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
823
</DD>
 
824
<DD><DL>
 
825
</DL>
 
826
</DD>
 
827
</DL>
 
828
<HR>
 
829
 
 
830
<A NAME="has(java.lang.String, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
831
has</H3>
 
832
<PRE>
 
833
public boolean <B>has</B>(java.lang.String&nbsp;name,
 
834
                   <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</PRE>
 
835
<DL>
 
836
<DD>Returns true if the named property is defined.
 
837
<P>
 
838
<DD><DL>
 
839
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#has(java.lang.String, org.mozilla.javascript.Scriptable)">has</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
840
</DD>
 
841
<DD><DL>
 
842
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property<DD><CODE>start</CODE> - the object in which the lookup began
 
843
<DT><B>Returns:</B><DD>true if and only if the property was found in the object<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#get(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
844
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getProperty(org.mozilla.javascript.Scriptable, java.lang.String)"><CODE>getProperty(org.mozilla.javascript.Scriptable, java.lang.String)</CODE></A></DL>
 
845
</DD>
 
846
</DL>
 
847
<HR>
 
848
 
 
849
<A NAME="has(int, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
850
has</H3>
 
851
<PRE>
 
852
public boolean <B>has</B>(int&nbsp;index,
 
853
                   <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</PRE>
 
854
<DL>
 
855
<DD>Returns true if the property index is defined.
 
856
<P>
 
857
<DD><DL>
 
858
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#has(int, org.mozilla.javascript.Scriptable)">has</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
859
</DD>
 
860
<DD><DL>
 
861
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the numeric index for the property<DD><CODE>start</CODE> - the object in which the lookup began
 
862
<DT><B>Returns:</B><DD>true if and only if the property was found in the object<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#get(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
863
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getProperty(org.mozilla.javascript.Scriptable, java.lang.String)"><CODE>getProperty(org.mozilla.javascript.Scriptable, java.lang.String)</CODE></A></DL>
 
864
</DD>
 
865
</DL>
 
866
<HR>
 
867
 
 
868
<A NAME="get(java.lang.String, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
869
get</H3>
 
870
<PRE>
 
871
public java.lang.Object <B>get</B>(java.lang.String&nbsp;name,
 
872
                            <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</PRE>
 
873
<DL>
 
874
<DD>Returns the value of the named property or NOT_FOUND.
 
875
 
 
876
 If the property was created using defineProperty, the
 
877
 appropriate getter method is called.
 
878
<P>
 
879
<DD><DL>
 
880
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#get(java.lang.String, org.mozilla.javascript.Scriptable)">get</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
881
</DD>
 
882
<DD><DL>
 
883
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property<DD><CODE>start</CODE> - the object in which the lookup began
 
884
<DT><B>Returns:</B><DD>the value of the property (may be null), or NOT_FOUND<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#getUndefinedValue()"><CODE>Context.getUndefinedValue()</CODE></A></DL>
 
885
</DD>
 
886
</DL>
 
887
<HR>
 
888
 
 
889
<A NAME="get(int, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
890
get</H3>
 
891
<PRE>
 
892
public java.lang.Object <B>get</B>(int&nbsp;index,
 
893
                            <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</PRE>
 
894
<DL>
 
895
<DD>Returns the value of the indexed property or NOT_FOUND.
 
896
<P>
 
897
<DD><DL>
 
898
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#get(int, org.mozilla.javascript.Scriptable)">get</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
899
</DD>
 
900
<DD><DL>
 
901
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the numeric index for the property<DD><CODE>start</CODE> - the object in which the lookup began
 
902
<DT><B>Returns:</B><DD>the value of the property (may be null), or NOT_FOUND<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#get(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.get(String,Scriptable)</CODE></A></DL>
 
903
</DD>
 
904
</DL>
 
905
<HR>
 
906
 
 
907
<A NAME="put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)"><!-- --></A><H3>
 
908
put</H3>
 
909
<PRE>
 
910
public void <B>put</B>(java.lang.String&nbsp;name,
 
911
                <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start,
 
912
                java.lang.Object&nbsp;value)</PRE>
 
913
<DL>
 
914
<DD>Sets the value of the named property, creating it if need be.
 
915
 
 
916
 If the property was created using defineProperty, the
 
917
 appropriate setter method is called. <p>
 
918
 
 
919
 If the property's attributes include READONLY, no action is
 
920
 taken.
 
921
 This method will actually set the property in the start
 
922
 object.
 
923
<P>
 
924
<DD><DL>
 
925
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)">put</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
926
</DD>
 
927
<DD><DL>
 
928
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property<DD><CODE>start</CODE> - the object whose property is being set<DD><CODE>value</CODE> - value to set the property to<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#has(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.has(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
929
<A HREF="../../../org/mozilla/javascript/Scriptable.html#get(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
930
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#putProperty(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object)"><CODE>putProperty(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object)</CODE></A>, 
 
931
<A HREF="../../../org/mozilla/javascript/Context.html#toObject(java.lang.Object, org.mozilla.javascript.Scriptable)"><CODE>Context.toObject(java.lang.Object, org.mozilla.javascript.Scriptable)</CODE></A></DL>
 
932
</DD>
 
933
</DL>
 
934
<HR>
 
935
 
 
936
<A NAME="put(int, org.mozilla.javascript.Scriptable, java.lang.Object)"><!-- --></A><H3>
 
937
put</H3>
 
938
<PRE>
 
939
public void <B>put</B>(int&nbsp;index,
 
940
                <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start,
 
941
                java.lang.Object&nbsp;value)</PRE>
 
942
<DL>
 
943
<DD>Sets the value of the indexed property, creating it if need be.
 
944
<P>
 
945
<DD><DL>
 
946
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#put(int, org.mozilla.javascript.Scriptable, java.lang.Object)">put</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
947
</DD>
 
948
<DD><DL>
 
949
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the numeric index for the property<DD><CODE>start</CODE> - the object whose property is being set<DD><CODE>value</CODE> - value to set the property to<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#has(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.has(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
950
<A HREF="../../../org/mozilla/javascript/Scriptable.html#get(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
951
<A HREF="../../../org/mozilla/javascript/Scriptable.html#put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)"><CODE>Scriptable.put(String,Scriptable,Object)</CODE></A>, 
 
952
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#putProperty(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object)"><CODE>putProperty(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object)</CODE></A></DL>
 
953
</DD>
 
954
</DL>
 
955
<HR>
 
956
 
 
957
<A NAME="delete(java.lang.String)"><!-- --></A><H3>
 
958
delete</H3>
 
959
<PRE>
 
960
public void <B>delete</B>(java.lang.String&nbsp;name)</PRE>
 
961
<DL>
 
962
<DD>Removes a named property from the object.
 
963
 
 
964
 If the property is not found, or it has the PERMANENT attribute,
 
965
 no action is taken.
 
966
<P>
 
967
<DD><DL>
 
968
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#delete(java.lang.String)">delete</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
969
</DD>
 
970
<DD><DL>
 
971
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#get(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
972
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#deleteProperty(org.mozilla.javascript.Scriptable, java.lang.String)"><CODE>deleteProperty(org.mozilla.javascript.Scriptable, java.lang.String)</CODE></A></DL>
 
973
</DD>
 
974
</DL>
 
975
<HR>
 
976
 
 
977
<A NAME="delete(int)"><!-- --></A><H3>
 
978
delete</H3>
 
979
<PRE>
 
980
public void <B>delete</B>(int&nbsp;index)</PRE>
 
981
<DL>
 
982
<DD>Removes the indexed property from the object.
 
983
 
 
984
 If the property is not found, or it has the PERMANENT attribute,
 
985
 no action is taken.
 
986
<P>
 
987
<DD><DL>
 
988
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#delete(int)">delete</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
989
</DD>
 
990
<DD><DL>
 
991
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the numeric index for the property<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#get(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
992
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#deleteProperty(org.mozilla.javascript.Scriptable, java.lang.String)"><CODE>deleteProperty(org.mozilla.javascript.Scriptable, java.lang.String)</CODE></A></DL>
 
993
</DD>
 
994
</DL>
 
995
<HR>
 
996
 
 
997
<A NAME="getAttributes(java.lang.String, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
998
getAttributes</H3>
 
999
<PRE>
 
1000
public final int <B>getAttributes</B>(java.lang.String&nbsp;name,
 
1001
                               <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</PRE>
 
1002
<DL>
 
1003
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(java.lang.String)"><CODE>getAttributes(String name)</CODE></A>. The engine always
 
1004
 ignored the start argument.</I>
 
1005
<P>
 
1006
<DD><DL>
 
1007
</DL>
 
1008
</DD>
 
1009
<DD><DL>
 
1010
</DL>
 
1011
</DD>
 
1012
</DL>
 
1013
<HR>
 
1014
 
 
1015
<A NAME="getAttributes(int, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
1016
getAttributes</H3>
 
1017
<PRE>
 
1018
public final int <B>getAttributes</B>(int&nbsp;index,
 
1019
                               <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start)</PRE>
 
1020
<DL>
 
1021
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAttributes(int)"><CODE>getAttributes(int index)</CODE></A>. The engine always
 
1022
 ignored the start argument.</I>
 
1023
<P>
 
1024
<DD><DL>
 
1025
</DL>
 
1026
</DD>
 
1027
<DD><DL>
 
1028
</DL>
 
1029
</DD>
 
1030
</DL>
 
1031
<HR>
 
1032
 
 
1033
<A NAME="setAttributes(java.lang.String, org.mozilla.javascript.Scriptable, int)"><!-- --></A><H3>
 
1034
setAttributes</H3>
 
1035
<PRE>
 
1036
public final void <B>setAttributes</B>(java.lang.String&nbsp;name,
 
1037
                                <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start,
 
1038
                                int&nbsp;attributes)</PRE>
 
1039
<DL>
 
1040
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(java.lang.String, int)"><CODE>setAttributes(String name, int attributes)</CODE></A>.
 
1041
 The engine always ignored the start argument.</I>
 
1042
<P>
 
1043
<DD><DL>
 
1044
</DL>
 
1045
</DD>
 
1046
<DD><DL>
 
1047
</DL>
 
1048
</DD>
 
1049
</DL>
 
1050
<HR>
 
1051
 
 
1052
<A NAME="setAttributes(int, org.mozilla.javascript.Scriptable, int)"><!-- --></A><H3>
 
1053
setAttributes</H3>
 
1054
<PRE>
 
1055
public void <B>setAttributes</B>(int&nbsp;index,
 
1056
                          <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;start,
 
1057
                          int&nbsp;attributes)</PRE>
 
1058
<DL>
 
1059
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#setAttributes(int, int)"><CODE>setAttributes(int index, int attributes)</CODE></A>.
 
1060
 The engine always ignored the start argument.</I>
 
1061
<P>
 
1062
<DD><DL>
 
1063
</DL>
 
1064
</DD>
 
1065
<DD><DL>
 
1066
</DL>
 
1067
</DD>
 
1068
</DL>
 
1069
<HR>
 
1070
 
 
1071
<A NAME="getAttributes(java.lang.String)"><!-- --></A><H3>
 
1072
getAttributes</H3>
 
1073
<PRE>
 
1074
public int <B>getAttributes</B>(java.lang.String&nbsp;name)</PRE>
 
1075
<DL>
 
1076
<DD>Get the attributes of a named property.
 
1077
 
 
1078
 The property is specified by <code>name</code>
 
1079
 as defined for <code>has</code>.<p>
 
1080
<P>
 
1081
<DD><DL>
 
1082
</DL>
 
1083
</DD>
 
1084
<DD><DL>
 
1085
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the identifier for the property
 
1086
<DT><B>Returns:</B><DD>the bitset of attributes
 
1087
<DT><B>Throws:</B>
 
1088
<DD><CODE><A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></CODE> - if the named property is not found<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#has(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>has(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
1089
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#READONLY"><CODE>READONLY</CODE></A>, 
 
1090
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#DONTENUM"><CODE>DONTENUM</CODE></A>, 
 
1091
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#PERMANENT"><CODE>PERMANENT</CODE></A>, 
 
1092
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#EMPTY"><CODE>EMPTY</CODE></A></DL>
 
1093
</DD>
 
1094
</DL>
 
1095
<HR>
 
1096
 
 
1097
<A NAME="getAttributes(int)"><!-- --></A><H3>
 
1098
getAttributes</H3>
 
1099
<PRE>
 
1100
public int <B>getAttributes</B>(int&nbsp;index)</PRE>
 
1101
<DL>
 
1102
<DD>Get the attributes of an indexed property.
 
1103
<P>
 
1104
<DD><DL>
 
1105
</DL>
 
1106
</DD>
 
1107
<DD><DL>
 
1108
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the numeric index for the property
 
1109
<DT><B>Returns:</B><DD>the bitset of attributes
 
1110
<DT><B>Throws:</B>
 
1111
<DD><CODE><A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></CODE> - if the named property is not found
 
1112
            is not found<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#has(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>has(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
1113
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#READONLY"><CODE>READONLY</CODE></A>, 
 
1114
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#DONTENUM"><CODE>DONTENUM</CODE></A>, 
 
1115
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#PERMANENT"><CODE>PERMANENT</CODE></A>, 
 
1116
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#EMPTY"><CODE>EMPTY</CODE></A></DL>
 
1117
</DD>
 
1118
</DL>
 
1119
<HR>
 
1120
 
 
1121
<A NAME="setAttributes(java.lang.String, int)"><!-- --></A><H3>
 
1122
setAttributes</H3>
 
1123
<PRE>
 
1124
public void <B>setAttributes</B>(java.lang.String&nbsp;name,
 
1125
                          int&nbsp;attributes)</PRE>
 
1126
<DL>
 
1127
<DD>Set the attributes of a named property.
 
1128
 
 
1129
 The property is specified by <code>name</code>
 
1130
 as defined for <code>has</code>.<p>
 
1131
 
 
1132
 The possible attributes are READONLY, DONTENUM,
 
1133
 and PERMANENT. Combinations of attributes
 
1134
 are expressed by the bitwise OR of attributes.
 
1135
 EMPTY is the state of no attributes set. Any unused
 
1136
 bits are reserved for future use.
 
1137
<P>
 
1138
<DD><DL>
 
1139
</DL>
 
1140
</DD>
 
1141
<DD><DL>
 
1142
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property<DD><CODE>attributes</CODE> - the bitset of attributes
 
1143
<DT><B>Throws:</B>
 
1144
<DD><CODE><A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></CODE> - if the named property is not found<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#has(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.has(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
1145
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#READONLY"><CODE>READONLY</CODE></A>, 
 
1146
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#DONTENUM"><CODE>DONTENUM</CODE></A>, 
 
1147
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#PERMANENT"><CODE>PERMANENT</CODE></A>, 
 
1148
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#EMPTY"><CODE>EMPTY</CODE></A></DL>
 
1149
</DD>
 
1150
</DL>
 
1151
<HR>
 
1152
 
 
1153
<A NAME="setAttributes(int, int)"><!-- --></A><H3>
 
1154
setAttributes</H3>
 
1155
<PRE>
 
1156
public void <B>setAttributes</B>(int&nbsp;index,
 
1157
                          int&nbsp;attributes)</PRE>
 
1158
<DL>
 
1159
<DD>Set the attributes of an indexed property.
 
1160
<P>
 
1161
<DD><DL>
 
1162
</DL>
 
1163
</DD>
 
1164
<DD><DL>
 
1165
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the numeric index for the property<DD><CODE>attributes</CODE> - the bitset of attributes
 
1166
<DT><B>Throws:</B>
 
1167
<DD><CODE><A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></CODE> - if the named property is not found<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#has(java.lang.String, org.mozilla.javascript.Scriptable)"><CODE>Scriptable.has(java.lang.String, org.mozilla.javascript.Scriptable)</CODE></A>, 
 
1168
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#READONLY"><CODE>READONLY</CODE></A>, 
 
1169
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#DONTENUM"><CODE>DONTENUM</CODE></A>, 
 
1170
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#PERMANENT"><CODE>PERMANENT</CODE></A>, 
 
1171
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#EMPTY"><CODE>EMPTY</CODE></A></DL>
 
1172
</DD>
 
1173
</DL>
 
1174
<HR>
 
1175
 
 
1176
<A NAME="getPrototype()"><!-- --></A><H3>
 
1177
getPrototype</H3>
 
1178
<PRE>
 
1179
public <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>getPrototype</B>()</PRE>
 
1180
<DL>
 
1181
<DD>Returns the prototype of the object.
 
1182
<P>
 
1183
<DD><DL>
 
1184
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#getPrototype()">getPrototype</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
1185
</DD>
 
1186
<DD><DL>
 
1187
 
 
1188
<DT><B>Returns:</B><DD>the prototype</DL>
 
1189
</DD>
 
1190
</DL>
 
1191
<HR>
 
1192
 
 
1193
<A NAME="setPrototype(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
1194
setPrototype</H3>
 
1195
<PRE>
 
1196
public void <B>setPrototype</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;m)</PRE>
 
1197
<DL>
 
1198
<DD>Sets the prototype of the object.
 
1199
<P>
 
1200
<DD><DL>
 
1201
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#setPrototype(org.mozilla.javascript.Scriptable)">setPrototype</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
1202
</DD>
 
1203
<DD><DL>
 
1204
<DT><B>Parameters:</B><DD><CODE>m</CODE> - the prototype to set</DL>
 
1205
</DD>
 
1206
</DL>
 
1207
<HR>
 
1208
 
 
1209
<A NAME="getParentScope()"><!-- --></A><H3>
 
1210
getParentScope</H3>
 
1211
<PRE>
 
1212
public <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>getParentScope</B>()</PRE>
 
1213
<DL>
 
1214
<DD>Returns the parent (enclosing) scope of the object.
 
1215
<P>
 
1216
<DD><DL>
 
1217
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#getParentScope()">getParentScope</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
1218
</DD>
 
1219
<DD><DL>
 
1220
 
 
1221
<DT><B>Returns:</B><DD>the parent scope</DL>
 
1222
</DD>
 
1223
</DL>
 
1224
<HR>
 
1225
 
 
1226
<A NAME="setParentScope(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
1227
setParentScope</H3>
 
1228
<PRE>
 
1229
public void <B>setParentScope</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;m)</PRE>
 
1230
<DL>
 
1231
<DD>Sets the parent (enclosing) scope of the object.
 
1232
<P>
 
1233
<DD><DL>
 
1234
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#setParentScope(org.mozilla.javascript.Scriptable)">setParentScope</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
1235
</DD>
 
1236
<DD><DL>
 
1237
<DT><B>Parameters:</B><DD><CODE>m</CODE> - the parent scope to set</DL>
 
1238
</DD>
 
1239
</DL>
 
1240
<HR>
 
1241
 
 
1242
<A NAME="getIds()"><!-- --></A><H3>
 
1243
getIds</H3>
 
1244
<PRE>
 
1245
public java.lang.Object[] <B>getIds</B>()</PRE>
 
1246
<DL>
 
1247
<DD>Returns an array of ids for the properties of the object.
 
1248
 
 
1249
 <p>Any properties with the attribute DONTENUM are not listed. <p>
 
1250
<P>
 
1251
<DD><DL>
 
1252
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#getIds()">getIds</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
1253
</DD>
 
1254
<DD><DL>
 
1255
 
 
1256
<DT><B>Returns:</B><DD>an array of java.lang.Objects with an entry for every
 
1257
 listed property. Properties accessed via an integer index will
 
1258
 have a corresponding
 
1259
 Integer entry in the returned array. Properties accessed by
 
1260
 a String will have a String entry in the returned array.</DL>
 
1261
</DD>
 
1262
</DL>
 
1263
<HR>
 
1264
 
 
1265
<A NAME="getAllIds()"><!-- --></A><H3>
 
1266
getAllIds</H3>
 
1267
<PRE>
 
1268
public java.lang.Object[] <B>getAllIds</B>()</PRE>
 
1269
<DL>
 
1270
<DD>Returns an array of ids for the properties of the object.
 
1271
 
 
1272
 <p>All properties, even those with attribute DONTENUM, are listed. <p>
 
1273
<P>
 
1274
<DD><DL>
 
1275
<DT><B>Specified by:</B><DD><CODE>getAllIds</CODE> in interface <CODE>org.mozilla.javascript.debug.DebuggableObject</CODE></DL>
 
1276
</DD>
 
1277
<DD><DL>
 
1278
 
 
1279
<DT><B>Returns:</B><DD>an array of java.lang.Objects with an entry for every
 
1280
 listed property. Properties accessed via an integer index will
 
1281
 have a corresponding
 
1282
 Integer entry in the returned array. Properties accessed by
 
1283
 a String will have a String entry in the returned array.</DL>
 
1284
</DD>
 
1285
</DL>
 
1286
<HR>
 
1287
 
 
1288
<A NAME="getDefaultValue(java.lang.Class)"><!-- --></A><H3>
 
1289
getDefaultValue</H3>
 
1290
<PRE>
 
1291
public java.lang.Object <B>getDefaultValue</B>(java.lang.Class&nbsp;typeHint)</PRE>
 
1292
<DL>
 
1293
<DD>Implements the [[DefaultValue]] internal method.
 
1294
 
 
1295
 <p>Note that the toPrimitive conversion is a no-op for
 
1296
 every type other than Object, for which [[DefaultValue]]
 
1297
 is called. See ECMA 9.1.<p>
 
1298
 
 
1299
 A <code>hint</code> of null means "no hint".
 
1300
<P>
 
1301
<DD><DL>
 
1302
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#getDefaultValue(java.lang.Class)">getDefaultValue</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
1303
</DD>
 
1304
<DD><DL>
 
1305
<DT><B>Parameters:</B><DD><CODE>typeHint</CODE> - the type hint
 
1306
<DT><B>Returns:</B><DD>the default value for the object
 
1307
 
 
1308
 See ECMA 8.6.2.6.</DL>
 
1309
</DD>
 
1310
</DL>
 
1311
<HR>
 
1312
 
 
1313
<A NAME="hasInstance(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
1314
hasInstance</H3>
 
1315
<PRE>
 
1316
public boolean <B>hasInstance</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;instance)</PRE>
 
1317
<DL>
 
1318
<DD>Implements the instanceof operator.
 
1319
 
 
1320
 <p>This operator has been proposed to ECMA.
 
1321
<P>
 
1322
<DD><DL>
 
1323
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html#hasInstance(org.mozilla.javascript.Scriptable)">hasInstance</A></CODE> in interface <CODE><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></DL>
 
1324
</DD>
 
1325
<DD><DL>
 
1326
<DT><B>Parameters:</B><DD><CODE>instance</CODE> - The value that appeared on the LHS of the instanceof
 
1327
              operator
 
1328
<DT><B>Returns:</B><DD>true if "this" appears in value's prototype chain</DL>
 
1329
</DD>
 
1330
</DL>
 
1331
<HR>
 
1332
 
 
1333
<A NAME="equivalentValues(java.lang.Object)"><!-- --></A><H3>
 
1334
equivalentValues</H3>
 
1335
<PRE>
 
1336
protected java.lang.Object <B>equivalentValues</B>(java.lang.Object&nbsp;value)</PRE>
 
1337
<DL>
 
1338
<DD>Custom <tt>==</tt> operator.
 
1339
 Must return <A HREF="../../../org/mozilla/javascript/Scriptable.html#NOT_FOUND"><CODE>Scriptable.NOT_FOUND</CODE></A> if this object does not
 
1340
 have custom equality operator for the given value,
 
1341
 <tt>Boolean.TRUE</tt> if this object is equivalent to <tt>value</tt>,
 
1342
 <tt>Boolean.FALSE</tt> if this object is not equivalent to
 
1343
 <tt>value</tt>.
 
1344
 <p>
 
1345
 The default implementation returns Boolean.TRUE
 
1346
 if <tt>this == value</tt> or <A HREF="../../../org/mozilla/javascript/Scriptable.html#NOT_FOUND"><CODE>Scriptable.NOT_FOUND</CODE></A> otherwise.
 
1347
 It indicates that by default custom equality is available only if
 
1348
 <tt>value</tt> is <tt>this</tt> in which case true is returned.
 
1349
<P>
 
1350
<DD><DL>
 
1351
</DL>
 
1352
</DD>
 
1353
<DD><DL>
 
1354
</DL>
 
1355
</DD>
 
1356
</DL>
 
1357
<HR>
 
1358
 
 
1359
<A NAME="defineClass(org.mozilla.javascript.Scriptable, java.lang.Class)"><!-- --></A><H3>
 
1360
defineClass</H3>
 
1361
<PRE>
 
1362
public static void <B>defineClass</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
1363
                               java.lang.Class&nbsp;clazz)
 
1364
                        throws java.lang.IllegalAccessException,
 
1365
                               java.lang.InstantiationException,
 
1366
                               java.lang.reflect.InvocationTargetException</PRE>
 
1367
<DL>
 
1368
<DD>Defines JavaScript objects from a Java class that implements Scriptable.
 
1369
 
 
1370
 If the given class has a method
 
1371
 <pre>
 
1372
 static void init(Context cx, Scriptable scope, boolean sealed);</pre>
 
1373
 
 
1374
 or its compatibility form
 
1375
 <pre>
 
1376
 static void init(Scriptable scope);</pre>
 
1377
 
 
1378
 then it is invoked and no further initialization is done.<p>
 
1379
 
 
1380
 However, if no such a method is found, then the class's constructors and
 
1381
 methods are used to initialize a class in the following manner.<p>
 
1382
 
 
1383
 First, the zero-parameter constructor of the class is called to
 
1384
 create the prototype. If no such constructor exists,
 
1385
 a <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript"><CODE>EvaluatorException</CODE></A> is thrown. <p>
 
1386
 
 
1387
 Next, all methods are scanned for special prefixes that indicate that they
 
1388
 have special meaning for defining JavaScript objects.
 
1389
 These special prefixes are
 
1390
 <ul>
 
1391
 <li><code>jsFunction_</code> for a JavaScript function
 
1392
 <li><code>jsStaticFunction_</code> for a JavaScript function that
 
1393
           is a property of the constructor
 
1394
 <li><code>jsGet_</code> for a getter of a JavaScript property
 
1395
 <li><code>jsSet_</code> for a setter of a JavaScript property
 
1396
 <li><code>jsConstructor</code> for a JavaScript function that
 
1397
           is the constructor
 
1398
 </ul><p>
 
1399
 
 
1400
 If the method's name begins with "jsFunction_", a JavaScript function
 
1401
 is created with a name formed from the rest of the Java method name
 
1402
 following "jsFunction_". So a Java method named "jsFunction_foo" will
 
1403
 define a JavaScript method "foo". Calling this JavaScript function
 
1404
 will cause the Java method to be called. The parameters of the method
 
1405
 must be of number and types as defined by the FunctionObject class.
 
1406
 The JavaScript function is then added as a property
 
1407
 of the prototype. <p>
 
1408
 
 
1409
 If the method's name begins with "jsStaticFunction_", it is handled
 
1410
 similarly except that the resulting JavaScript function is added as a
 
1411
 property of the constructor object. The Java method must be static.
 
1412
 
 
1413
 If the method's name begins with "jsGet_" or "jsSet_", the method is
 
1414
 considered to define a property. Accesses to the defined property
 
1415
 will result in calls to these getter and setter methods. If no
 
1416
 setter is defined, the property is defined as READONLY.<p>
 
1417
 
 
1418
 If the method's name is "jsConstructor", the method is
 
1419
 considered to define the body of the constructor. Only one
 
1420
 method of this name may be defined.
 
1421
 If no method is found that can serve as constructor, a Java
 
1422
 constructor will be selected to serve as the JavaScript
 
1423
 constructor in the following manner. If the class has only one
 
1424
 Java constructor, that constructor is used to define
 
1425
 the JavaScript constructor. If the the class has two constructors,
 
1426
 one must be the zero-argument constructor (otherwise an
 
1427
 <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript"><CODE>EvaluatorException</CODE></A> would have already been thrown
 
1428
 when the prototype was to be created). In this case
 
1429
 the Java constructor with one or more parameters will be used
 
1430
 to define the JavaScript constructor. If the class has three
 
1431
 or more constructors, an <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript"><CODE>EvaluatorException</CODE></A>
 
1432
 will be thrown.<p>
 
1433
 
 
1434
 Finally, if there is a method
 
1435
 <pre>
 
1436
 static void finishInit(Scriptable scope, FunctionObject constructor,
 
1437
                        Scriptable prototype)</pre>
 
1438
 
 
1439
 it will be called to finish any initialization. The <code>scope</code>
 
1440
 argument will be passed, along with the newly created constructor and
 
1441
 the newly created prototype.<p>
 
1442
<P>
 
1443
<DD><DL>
 
1444
</DL>
 
1445
</DD>
 
1446
<DD><DL>
 
1447
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - The scope in which to define the constructor<DD><CODE>clazz</CODE> - The Java class to use to define the JavaScript objects
 
1448
              and properties
 
1449
<DT><B>Throws:</B>
 
1450
<DD><CODE>java.lang.IllegalAccessException</CODE> - if access is not available
 
1451
            to a reflected class member
 
1452
<DD><CODE>java.lang.InstantiationException</CODE> - if unable to instantiate
 
1453
            the named class
 
1454
<DD><CODE>java.lang.reflect.InvocationTargetException</CODE> - if an exception is thrown
 
1455
            during execution of methods of the named class<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Function.html" title="interface in org.mozilla.javascript"><CODE>Function</CODE></A>, 
 
1456
<A HREF="../../../org/mozilla/javascript/FunctionObject.html" title="class in org.mozilla.javascript"><CODE>FunctionObject</CODE></A>, 
 
1457
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#READONLY"><CODE>READONLY</CODE></A>, 
 
1458
<A HREF="../../../org/mozilla/javascript/ScriptableObject.html#defineProperty(java.lang.String, java.lang.Object, int)"><CODE>defineProperty(java.lang.String, java.lang.Object, int)</CODE></A></DL>
 
1459
</DD>
 
1460
</DL>
 
1461
<HR>
 
1462
 
 
1463
<A NAME="defineClass(org.mozilla.javascript.Scriptable, java.lang.Class, boolean)"><!-- --></A><H3>
 
1464
defineClass</H3>
 
1465
<PRE>
 
1466
public static void <B>defineClass</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
1467
                               java.lang.Class&nbsp;clazz,
 
1468
                               boolean&nbsp;sealed)
 
1469
                        throws java.lang.IllegalAccessException,
 
1470
                               java.lang.InstantiationException,
 
1471
                               java.lang.reflect.InvocationTargetException</PRE>
 
1472
<DL>
 
1473
<DD>Defines JavaScript objects from a Java class, optionally
 
1474
 allowing sealing.
 
1475
 
 
1476
 Similar to <code>defineClass(Scriptable scope, Class clazz)</code>
 
1477
 except that sealing is allowed. An object that is sealed cannot have
 
1478
 properties added or removed. Note that sealing is not allowed in
 
1479
 the current ECMA/ISO language specification, but is likely for
 
1480
 the next version.
 
1481
<P>
 
1482
<DD><DL>
 
1483
</DL>
 
1484
</DD>
 
1485
<DD><DL>
 
1486
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - The scope in which to define the constructor<DD><CODE>clazz</CODE> - The Java class to use to define the JavaScript objects
 
1487
              and properties. The class must implement Scriptable.<DD><CODE>sealed</CODE> - whether or not to create sealed standard objects that
 
1488
               cannot be modified.
 
1489
<DT><B>Throws:</B>
 
1490
<DD><CODE>java.lang.IllegalAccessException</CODE> - if access is not available
 
1491
            to a reflected class member
 
1492
<DD><CODE>java.lang.InstantiationException</CODE> - if unable to instantiate
 
1493
            the named class
 
1494
<DD><CODE>java.lang.reflect.InvocationTargetException</CODE> - if an exception is thrown
 
1495
            during execution of methods of the named class<DT><B>Since:</B></DT>
 
1496
  <DD>1.4R3</DD>
 
1497
</DL>
 
1498
</DD>
 
1499
</DL>
 
1500
<HR>
 
1501
 
 
1502
<A NAME="defineProperty(java.lang.String, java.lang.Object, int)"><!-- --></A><H3>
 
1503
defineProperty</H3>
 
1504
<PRE>
 
1505
public void <B>defineProperty</B>(java.lang.String&nbsp;propertyName,
 
1506
                           java.lang.Object&nbsp;value,
 
1507
                           int&nbsp;attributes)</PRE>
 
1508
<DL>
 
1509
<DD>Define a JavaScript property.
 
1510
 
 
1511
 Creates the property with an initial value and sets its attributes.
 
1512
<P>
 
1513
<DD><DL>
 
1514
</DL>
 
1515
</DD>
 
1516
<DD><DL>
 
1517
<DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - the name of the property to define.<DD><CODE>value</CODE> - the initial value of the property<DD><CODE>attributes</CODE> - the attributes of the JavaScript property<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)"><CODE>Scriptable.put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)</CODE></A></DL>
 
1518
</DD>
 
1519
</DL>
 
1520
<HR>
 
1521
 
 
1522
<A NAME="defineProperty(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object, int)"><!-- --></A><H3>
 
1523
defineProperty</H3>
 
1524
<PRE>
 
1525
public static void <B>defineProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;destination,
 
1526
                                  java.lang.String&nbsp;propertyName,
 
1527
                                  java.lang.Object&nbsp;value,
 
1528
                                  int&nbsp;attributes)</PRE>
 
1529
<DL>
 
1530
<DD>Utility method to add properties to arbitrary Scriptable object.
 
1531
 If destination is instance of ScriptableObject, calls
 
1532
 defineProperty there, otherwise calls put in destination
 
1533
 ignoring attributes
 
1534
<P>
 
1535
<DD><DL>
 
1536
</DL>
 
1537
</DD>
 
1538
<DD><DL>
 
1539
</DL>
 
1540
</DD>
 
1541
</DL>
 
1542
<HR>
 
1543
 
 
1544
<A NAME="defineProperty(java.lang.String, java.lang.Class, int)"><!-- --></A><H3>
 
1545
defineProperty</H3>
 
1546
<PRE>
 
1547
public void <B>defineProperty</B>(java.lang.String&nbsp;propertyName,
 
1548
                           java.lang.Class&nbsp;clazz,
 
1549
                           int&nbsp;attributes)</PRE>
 
1550
<DL>
 
1551
<DD>Define a JavaScript property with getter and setter side effects.
 
1552
 
 
1553
 If the setter is not found, the attribute READONLY is added to
 
1554
 the given attributes. <p>
 
1555
 
 
1556
 The getter must be a method with zero parameters, and the setter, if
 
1557
 found, must be a method with one parameter.<p>
 
1558
<P>
 
1559
<DD><DL>
 
1560
</DL>
 
1561
</DD>
 
1562
<DD><DL>
 
1563
<DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - the name of the property to define. This name
 
1564
                    also affects the name of the setter and getter
 
1565
                    to search for. If the propertyId is "foo", then
 
1566
                    <code>clazz</code> will be searched for "getFoo"
 
1567
                    and "setFoo" methods.<DD><CODE>clazz</CODE> - the Java class to search for the getter and setter<DD><CODE>attributes</CODE> - the attributes of the JavaScript property<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html#put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)"><CODE>Scriptable.put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)</CODE></A></DL>
 
1568
</DD>
 
1569
</DL>
 
1570
<HR>
 
1571
 
 
1572
<A NAME="defineProperty(java.lang.String, java.lang.Object, java.lang.reflect.Method, java.lang.reflect.Method, int)"><!-- --></A><H3>
 
1573
defineProperty</H3>
 
1574
<PRE>
 
1575
public void <B>defineProperty</B>(java.lang.String&nbsp;propertyName,
 
1576
                           java.lang.Object&nbsp;delegateTo,
 
1577
                           java.lang.reflect.Method&nbsp;getter,
 
1578
                           java.lang.reflect.Method&nbsp;setter,
 
1579
                           int&nbsp;attributes)</PRE>
 
1580
<DL>
 
1581
<DD>Define a JavaScript property.
 
1582
 
 
1583
 Use this method only if you wish to define getters and setters for
 
1584
 a given property in a ScriptableObject. To create a property without
 
1585
 special getter or setter side effects, use
 
1586
 <code>defineProperty(String,int)</code>.
 
1587
 
 
1588
 If <code>setter</code> is null, the attribute READONLY is added to
 
1589
 the given attributes.<p>
 
1590
 
 
1591
 Several forms of getters or setters are allowed. In all cases the
 
1592
 type of the value parameter can be any one of the following types:
 
1593
 Object, String, boolean, Scriptable, byte, short, int, long, float,
 
1594
 or double. The runtime will perform appropriate conversions based
 
1595
 upon the type of the parameter (see description in FunctionObject).
 
1596
 The first forms are nonstatic methods of the class referred to
 
1597
 by 'this':
 
1598
 <pre>
 
1599
 Object getFoo();
 
1600
 void setFoo(SomeType value);</pre>
 
1601
 Next are static methods that may be of any class; the object whose
 
1602
 property is being accessed is passed in as an extra argument:
 
1603
 <pre>
 
1604
 static Object getFoo(ScriptableObject obj);
 
1605
 static void setFoo(ScriptableObject obj, SomeType value);</pre>
 
1606
 Finally, it is possible to delegate to another object entirely using
 
1607
 the <code>delegateTo</code> parameter. In this case the methods are
 
1608
 nonstatic methods of the class delegated to, and the object whose
 
1609
 property is being accessed is passed in as an extra argument:
 
1610
 <pre>
 
1611
 Object getFoo(ScriptableObject obj);
 
1612
 void setFoo(ScriptableObject obj, SomeType value);</pre>
 
1613
<P>
 
1614
<DD><DL>
 
1615
</DL>
 
1616
</DD>
 
1617
<DD><DL>
 
1618
<DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - the name of the property to define.<DD><CODE>delegateTo</CODE> - an object to call the getter and setter methods on,
 
1619
                   or null, depending on the form used above.<DD><CODE>getter</CODE> - the method to invoke to get the value of the property<DD><CODE>setter</CODE> - the method to invoke to set the value of the property<DD><CODE>attributes</CODE> - the attributes of the JavaScript property</DL>
 
1620
</DD>
 
1621
</DL>
 
1622
<HR>
 
1623
 
 
1624
<A NAME="defineFunctionProperties(java.lang.String[], java.lang.Class, int)"><!-- --></A><H3>
 
1625
defineFunctionProperties</H3>
 
1626
<PRE>
 
1627
public void <B>defineFunctionProperties</B>(java.lang.String[]&nbsp;names,
 
1628
                                     java.lang.Class&nbsp;clazz,
 
1629
                                     int&nbsp;attributes)</PRE>
 
1630
<DL>
 
1631
<DD>Search for names in a class, adding the resulting methods
 
1632
 as properties.
 
1633
 
 
1634
 <p> Uses reflection to find the methods of the given names. Then
 
1635
 FunctionObjects are constructed from the methods found, and
 
1636
 are added to this object as properties with the given names.
 
1637
<P>
 
1638
<DD><DL>
 
1639
</DL>
 
1640
</DD>
 
1641
<DD><DL>
 
1642
<DT><B>Parameters:</B><DD><CODE>names</CODE> - the names of the Methods to add as function properties<DD><CODE>clazz</CODE> - the class to search for the Methods<DD><CODE>attributes</CODE> - the attributes of the new properties<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/FunctionObject.html" title="class in org.mozilla.javascript"><CODE>FunctionObject</CODE></A></DL>
 
1643
</DD>
 
1644
</DL>
 
1645
<HR>
 
1646
 
 
1647
<A NAME="getObjectPrototype(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
1648
getObjectPrototype</H3>
 
1649
<PRE>
 
1650
public static <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>getObjectPrototype</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</PRE>
 
1651
<DL>
 
1652
<DD>Get the Object.prototype property.
 
1653
 See ECMA 15.2.4.
 
1654
<P>
 
1655
<DD><DL>
 
1656
</DL>
 
1657
</DD>
 
1658
<DD><DL>
 
1659
</DL>
 
1660
</DD>
 
1661
</DL>
 
1662
<HR>
 
1663
 
 
1664
<A NAME="getFunctionPrototype(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
1665
getFunctionPrototype</H3>
 
1666
<PRE>
 
1667
public static <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>getFunctionPrototype</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</PRE>
 
1668
<DL>
 
1669
<DD>Get the Function.prototype property.
 
1670
 See ECMA 15.3.4.
 
1671
<P>
 
1672
<DD><DL>
 
1673
</DL>
 
1674
</DD>
 
1675
<DD><DL>
 
1676
</DL>
 
1677
</DD>
 
1678
</DL>
 
1679
<HR>
 
1680
 
 
1681
<A NAME="getClassPrototype(org.mozilla.javascript.Scriptable, java.lang.String)"><!-- --></A><H3>
 
1682
getClassPrototype</H3>
 
1683
<PRE>
 
1684
public static <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>getClassPrototype</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
1685
                                           java.lang.String&nbsp;className)</PRE>
 
1686
<DL>
 
1687
<DD>Get the prototype for the named class.
 
1688
 
 
1689
 For example, <code>getClassPrototype(s, "Date")</code> will first
 
1690
 walk up the parent chain to find the outermost scope, then will
 
1691
 search that scope for the Date constructor, and then will
 
1692
 return Date.prototype. If any of the lookups fail, or
 
1693
 the prototype is not a JavaScript object, then null will
 
1694
 be returned.
 
1695
<P>
 
1696
<DD><DL>
 
1697
</DL>
 
1698
</DD>
 
1699
<DD><DL>
 
1700
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - an object in the scope chain<DD><CODE>className</CODE> - the name of the constructor
 
1701
<DT><B>Returns:</B><DD>the prototype for the named class, or null if it
 
1702
         cannot be found.</DL>
 
1703
</DD>
 
1704
</DL>
 
1705
<HR>
 
1706
 
 
1707
<A NAME="getTopLevelScope(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
1708
getTopLevelScope</H3>
 
1709
<PRE>
 
1710
public static <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>getTopLevelScope</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj)</PRE>
 
1711
<DL>
 
1712
<DD>Get the global scope.
 
1713
 
 
1714
 <p>Walks the parent scope chain to find an object with a null
 
1715
 parent scope (the global object).
 
1716
<P>
 
1717
<DD><DL>
 
1718
</DL>
 
1719
</DD>
 
1720
<DD><DL>
 
1721
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object
 
1722
<DT><B>Returns:</B><DD>the corresponding global scope</DL>
 
1723
</DD>
 
1724
</DL>
 
1725
<HR>
 
1726
 
 
1727
<A NAME="sealObject()"><!-- --></A><H3>
 
1728
sealObject</H3>
 
1729
<PRE>
 
1730
public void <B>sealObject</B>()</PRE>
 
1731
<DL>
 
1732
<DD>Seal this object.
 
1733
 
 
1734
 A sealed object may not have properties added or removed. Once
 
1735
 an object is sealed it may not be unsealed.
 
1736
<P>
 
1737
<DD><DL>
 
1738
</DL>
 
1739
</DD>
 
1740
<DD><DL>
 
1741
<DT><B>Since:</B></DT>
 
1742
  <DD>1.4R3</DD>
 
1743
</DL>
 
1744
</DD>
 
1745
</DL>
 
1746
<HR>
 
1747
 
 
1748
<A NAME="isSealed()"><!-- --></A><H3>
 
1749
isSealed</H3>
 
1750
<PRE>
 
1751
public final boolean <B>isSealed</B>()</PRE>
 
1752
<DL>
 
1753
<DD>Return true if this object is sealed.
 
1754
 
 
1755
 It is an error to attempt to add or remove properties to
 
1756
 a sealed object.
 
1757
<P>
 
1758
<DD><DL>
 
1759
</DL>
 
1760
</DD>
 
1761
<DD><DL>
 
1762
 
 
1763
<DT><B>Returns:</B><DD>true if sealed, false otherwise.<DT><B>Since:</B></DT>
 
1764
  <DD>1.4R3</DD>
 
1765
</DL>
 
1766
</DD>
 
1767
</DL>
 
1768
<HR>
 
1769
 
 
1770
<A NAME="getProperty(org.mozilla.javascript.Scriptable, java.lang.String)"><!-- --></A><H3>
 
1771
getProperty</H3>
 
1772
<PRE>
 
1773
public static java.lang.Object <B>getProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1774
                                           java.lang.String&nbsp;name)</PRE>
 
1775
<DL>
 
1776
<DD>Gets a named property from an object or any object in its prototype chain.
 
1777
 <p>
 
1778
 Searches the prototype chain for a property named <code>name</code>.
 
1779
 <p>
 
1780
<P>
 
1781
<DD><DL>
 
1782
</DL>
 
1783
</DD>
 
1784
<DD><DL>
 
1785
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object<DD><CODE>name</CODE> - a property name
 
1786
<DT><B>Returns:</B><DD>the value of a property with name <code>name</code> found in
 
1787
         <code>obj</code> or any object in its prototype chain, or
 
1788
         <code>Scriptable.NOT_FOUND</code> if not found<DT><B>Since:</B></DT>
 
1789
  <DD>1.5R2</DD>
 
1790
</DL>
 
1791
</DD>
 
1792
</DL>
 
1793
<HR>
 
1794
 
 
1795
<A NAME="getProperty(org.mozilla.javascript.Scriptable, int)"><!-- --></A><H3>
 
1796
getProperty</H3>
 
1797
<PRE>
 
1798
public static java.lang.Object <B>getProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1799
                                           int&nbsp;index)</PRE>
 
1800
<DL>
 
1801
<DD>Gets an indexed property from an object or any object in its prototype chain.
 
1802
 <p>
 
1803
 Searches the prototype chain for a property with integral index
 
1804
 <code>index</code>. Note that if you wish to look for properties with numerical
 
1805
 but non-integral indicies, you should use getProperty(Scriptable,String) with
 
1806
 the string value of the index.
 
1807
 <p>
 
1808
<P>
 
1809
<DD><DL>
 
1810
</DL>
 
1811
</DD>
 
1812
<DD><DL>
 
1813
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object<DD><CODE>index</CODE> - an integral index
 
1814
<DT><B>Returns:</B><DD>the value of a property with index <code>index</code> found in
 
1815
         <code>obj</code> or any object in its prototype chain, or
 
1816
         <code>Scriptable.NOT_FOUND</code> if not found<DT><B>Since:</B></DT>
 
1817
  <DD>1.5R2</DD>
 
1818
</DL>
 
1819
</DD>
 
1820
</DL>
 
1821
<HR>
 
1822
 
 
1823
<A NAME="hasProperty(org.mozilla.javascript.Scriptable, java.lang.String)"><!-- --></A><H3>
 
1824
hasProperty</H3>
 
1825
<PRE>
 
1826
public static boolean <B>hasProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1827
                                  java.lang.String&nbsp;name)</PRE>
 
1828
<DL>
 
1829
<DD>Returns whether a named property is defined in an object or any object
 
1830
 in its prototype chain.
 
1831
 <p>
 
1832
 Searches the prototype chain for a property named <code>name</code>.
 
1833
 <p>
 
1834
<P>
 
1835
<DD><DL>
 
1836
</DL>
 
1837
</DD>
 
1838
<DD><DL>
 
1839
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object<DD><CODE>name</CODE> - a property name
 
1840
<DT><B>Returns:</B><DD>the true if property was found<DT><B>Since:</B></DT>
 
1841
  <DD>1.5R2</DD>
 
1842
</DL>
 
1843
</DD>
 
1844
</DL>
 
1845
<HR>
 
1846
 
 
1847
<A NAME="hasProperty(org.mozilla.javascript.Scriptable, int)"><!-- --></A><H3>
 
1848
hasProperty</H3>
 
1849
<PRE>
 
1850
public static boolean <B>hasProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1851
                                  int&nbsp;index)</PRE>
 
1852
<DL>
 
1853
<DD>Returns whether an indexed property is defined in an object or any object
 
1854
 in its prototype chain.
 
1855
 <p>
 
1856
 Searches the prototype chain for a property with index <code>index</code>.
 
1857
 <p>
 
1858
<P>
 
1859
<DD><DL>
 
1860
</DL>
 
1861
</DD>
 
1862
<DD><DL>
 
1863
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object<DD><CODE>index</CODE> - a property index
 
1864
<DT><B>Returns:</B><DD>the true if property was found<DT><B>Since:</B></DT>
 
1865
  <DD>1.5R2</DD>
 
1866
</DL>
 
1867
</DD>
 
1868
</DL>
 
1869
<HR>
 
1870
 
 
1871
<A NAME="putProperty(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object)"><!-- --></A><H3>
 
1872
putProperty</H3>
 
1873
<PRE>
 
1874
public static void <B>putProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1875
                               java.lang.String&nbsp;name,
 
1876
                               java.lang.Object&nbsp;value)</PRE>
 
1877
<DL>
 
1878
<DD>Puts a named property in an object or in an object in its prototype chain.
 
1879
 <p>
 
1880
 Seaches for the named property in the prototype chain. If it is found,
 
1881
 the value of the property is changed. If it is not found, a new
 
1882
 property is added in <code>obj</code>.
 
1883
<P>
 
1884
<DD><DL>
 
1885
</DL>
 
1886
</DD>
 
1887
<DD><DL>
 
1888
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object<DD><CODE>name</CODE> - a property name<DD><CODE>value</CODE> - any JavaScript value accepted by Scriptable.put<DT><B>Since:</B></DT>
 
1889
  <DD>1.5R2</DD>
 
1890
</DL>
 
1891
</DD>
 
1892
</DL>
 
1893
<HR>
 
1894
 
 
1895
<A NAME="putProperty(org.mozilla.javascript.Scriptable, int, java.lang.Object)"><!-- --></A><H3>
 
1896
putProperty</H3>
 
1897
<PRE>
 
1898
public static void <B>putProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1899
                               int&nbsp;index,
 
1900
                               java.lang.Object&nbsp;value)</PRE>
 
1901
<DL>
 
1902
<DD>Puts an indexed property in an object or in an object in its prototype chain.
 
1903
 <p>
 
1904
 Seaches for the indexed property in the prototype chain. If it is found,
 
1905
 the value of the property is changed. If it is not found, a new
 
1906
 property is added in <code>obj</code>.
 
1907
<P>
 
1908
<DD><DL>
 
1909
</DL>
 
1910
</DD>
 
1911
<DD><DL>
 
1912
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object<DD><CODE>index</CODE> - a property index<DD><CODE>value</CODE> - any JavaScript value accepted by Scriptable.put<DT><B>Since:</B></DT>
 
1913
  <DD>1.5R2</DD>
 
1914
</DL>
 
1915
</DD>
 
1916
</DL>
 
1917
<HR>
 
1918
 
 
1919
<A NAME="deleteProperty(org.mozilla.javascript.Scriptable, java.lang.String)"><!-- --></A><H3>
 
1920
deleteProperty</H3>
 
1921
<PRE>
 
1922
public static boolean <B>deleteProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1923
                                     java.lang.String&nbsp;name)</PRE>
 
1924
<DL>
 
1925
<DD>Removes the property from an object or its prototype chain.
 
1926
 <p>
 
1927
 Searches for a property with <code>name</code> in obj or
 
1928
 its prototype chain. If it is found, the object's delete
 
1929
 method is called.
 
1930
<P>
 
1931
<DD><DL>
 
1932
</DL>
 
1933
</DD>
 
1934
<DD><DL>
 
1935
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object<DD><CODE>name</CODE> - a property name
 
1936
<DT><B>Returns:</B><DD>true if the property doesn't exist or was successfully removed<DT><B>Since:</B></DT>
 
1937
  <DD>1.5R2</DD>
 
1938
</DL>
 
1939
</DD>
 
1940
</DL>
 
1941
<HR>
 
1942
 
 
1943
<A NAME="deleteProperty(org.mozilla.javascript.Scriptable, int)"><!-- --></A><H3>
 
1944
deleteProperty</H3>
 
1945
<PRE>
 
1946
public static boolean <B>deleteProperty</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1947
                                     int&nbsp;index)</PRE>
 
1948
<DL>
 
1949
<DD>Removes the property from an object or its prototype chain.
 
1950
 <p>
 
1951
 Searches for a property with <code>index</code> in obj or
 
1952
 its prototype chain. If it is found, the object's delete
 
1953
 method is called.
 
1954
<P>
 
1955
<DD><DL>
 
1956
</DL>
 
1957
</DD>
 
1958
<DD><DL>
 
1959
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object<DD><CODE>index</CODE> - a property index
 
1960
<DT><B>Returns:</B><DD>true if the property doesn't exist or was successfully removed<DT><B>Since:</B></DT>
 
1961
  <DD>1.5R2</DD>
 
1962
</DL>
 
1963
</DD>
 
1964
</DL>
 
1965
<HR>
 
1966
 
 
1967
<A NAME="getPropertyIds(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
 
1968
getPropertyIds</H3>
 
1969
<PRE>
 
1970
public static java.lang.Object[] <B>getPropertyIds</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj)</PRE>
 
1971
<DL>
 
1972
<DD>Returns an array of all ids from an object and its prototypes.
 
1973
 <p>
 
1974
<P>
 
1975
<DD><DL>
 
1976
</DL>
 
1977
</DD>
 
1978
<DD><DL>
 
1979
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - a JavaScript object
 
1980
<DT><B>Returns:</B><DD>an array of all ids from all object in the prototype chain.
 
1981
         If a given id occurs multiple times in the prototype chain,
 
1982
         it will occur only once in this list.<DT><B>Since:</B></DT>
 
1983
  <DD>1.5R2</DD>
 
1984
</DL>
 
1985
</DD>
 
1986
</DL>
 
1987
<HR>
 
1988
 
 
1989
<A NAME="callMethod(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object[])"><!-- --></A><H3>
 
1990
callMethod</H3>
 
1991
<PRE>
 
1992
public static java.lang.Object <B>callMethod</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
1993
                                          java.lang.String&nbsp;methodName,
 
1994
                                          java.lang.Object[]&nbsp;args)</PRE>
 
1995
<DL>
 
1996
<DD>Call a method of an object.
 
1997
<P>
 
1998
<DD><DL>
 
1999
</DL>
 
2000
</DD>
 
2001
<DD><DL>
 
2002
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - the JavaScript object<DD><CODE>methodName</CODE> - the name of the function property<DD><CODE>args</CODE> - the arguments for the call<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#getCurrentContext()"><CODE>Context.getCurrentContext()</CODE></A></DL>
 
2003
</DD>
 
2004
</DL>
 
2005
<HR>
 
2006
 
 
2007
<A NAME="callMethod(org.mozilla.javascript.Context, org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object[])"><!-- --></A><H3>
 
2008
callMethod</H3>
 
2009
<PRE>
 
2010
public static java.lang.Object <B>callMethod</B>(<A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A>&nbsp;cx,
 
2011
                                          <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;obj,
 
2012
                                          java.lang.String&nbsp;methodName,
 
2013
                                          java.lang.Object[]&nbsp;args)</PRE>
 
2014
<DL>
 
2015
<DD>Call a method of an object.
 
2016
<P>
 
2017
<DD><DL>
 
2018
</DL>
 
2019
</DD>
 
2020
<DD><DL>
 
2021
<DT><B>Parameters:</B><DD><CODE>cx</CODE> - the Context object associated with the current thread.<DD><CODE>obj</CODE> - the JavaScript object<DD><CODE>methodName</CODE> - the name of the function property<DD><CODE>args</CODE> - the arguments for the call</DL>
 
2022
</DD>
 
2023
</DL>
 
2024
<HR>
 
2025
 
 
2026
<A NAME="getAssociatedValue(java.lang.Object)"><!-- --></A><H3>
 
2027
getAssociatedValue</H3>
 
2028
<PRE>
 
2029
public final java.lang.Object <B>getAssociatedValue</B>(java.lang.Object&nbsp;key)</PRE>
 
2030
<DL>
 
2031
<DD>Get arbitrary application-specific value associated with this object.
 
2032
<P>
 
2033
<DD><DL>
 
2034
</DL>
 
2035
</DD>
 
2036
<DD><DL>
 
2037
<DT><B>Parameters:</B><DD><CODE>key</CODE> - key object to select particular value.<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#associateValue(java.lang.Object, java.lang.Object)"><CODE>associateValue(Object key, Object value)</CODE></A></DL>
 
2038
</DD>
 
2039
</DL>
 
2040
<HR>
 
2041
 
 
2042
<A NAME="getTopScopeValue(org.mozilla.javascript.Scriptable, java.lang.Object)"><!-- --></A><H3>
 
2043
getTopScopeValue</H3>
 
2044
<PRE>
 
2045
public static java.lang.Object <B>getTopScopeValue</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
 
2046
                                                java.lang.Object&nbsp;key)</PRE>
 
2047
<DL>
 
2048
<DD>Get arbitrary application-specific value associated with the top scope
 
2049
 of the given scope.
 
2050
 The method first calls <A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getTopLevelScope(org.mozilla.javascript.Scriptable)"><CODE>getTopLevelScope(Scriptable scope)</CODE></A>
 
2051
 and then searches the prototype chain of the top scope for the first
 
2052
 object containing the associated value with the given key.
 
2053
<P>
 
2054
<DD><DL>
 
2055
</DL>
 
2056
</DD>
 
2057
<DD><DL>
 
2058
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the starting scope.<DD><CODE>key</CODE> - key object to select particular value.<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAssociatedValue(java.lang.Object)"><CODE>getAssociatedValue(Object key)</CODE></A></DL>
 
2059
</DD>
 
2060
</DL>
 
2061
<HR>
 
2062
 
 
2063
<A NAME="associateValue(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
 
2064
associateValue</H3>
 
2065
<PRE>
 
2066
public final java.lang.Object <B>associateValue</B>(java.lang.Object&nbsp;key,
 
2067
                                             java.lang.Object&nbsp;value)</PRE>
 
2068
<DL>
 
2069
<DD>Associate arbitrary application-specific value with this object.
 
2070
 Value can only be associated with the given object and key only once.
 
2071
 The method ignores any subsequent attempts to change the already
 
2072
 associated value.
 
2073
 <p> The associated values are not serilized.
 
2074
<P>
 
2075
<DD><DL>
 
2076
</DL>
 
2077
</DD>
 
2078
<DD><DL>
 
2079
<DT><B>Parameters:</B><DD><CODE>key</CODE> - key object to select particular value.<DD><CODE>value</CODE> - the value to associate
 
2080
<DT><B>Returns:</B><DD>the passed value if the method is called first time for the
 
2081
 given key or old value for any subsequent calls.<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ScriptableObject.html#getAssociatedValue(java.lang.Object)"><CODE>getAssociatedValue(Object key)</CODE></A></DL>
 
2082
</DD>
 
2083
</DL>
 
2084
<!-- ========= END OF CLASS DATA ========= -->
 
2085
<HR>
 
2086
 
 
2087
 
 
2088
<!-- ======= START OF BOTTOM NAVBAR ====== -->
 
2089
<A NAME="navbar_bottom"><!-- --></A>
 
2090
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
 
2091
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
2092
<TR>
 
2093
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
2094
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
2095
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
2096
  <TR ALIGN="center" VALIGN="top">
 
2097
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
2098
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
2099
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
2100
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
2101
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
2102
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
2103
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
2104
  </TR>
 
2105
</TABLE>
 
2106
</TD>
 
2107
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
2108
</EM>
 
2109
</TD>
 
2110
</TR>
 
2111
 
 
2112
<TR>
 
2113
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
2114
&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript"><B>PREV CLASS</B></A>&nbsp;
 
2115
&nbsp;<A HREF="../../../org/mozilla/javascript/SecurityController.html" title="class in org.mozilla.javascript"><B>NEXT CLASS</B></A></FONT></TD>
 
2116
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
2117
  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
2118
&nbsp;<A HREF="ScriptableObject.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
2119
&nbsp;<SCRIPT type="text/javascript">
 
2120
  <!--
 
2121
  if(window==top) {
 
2122
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
2123
  }
 
2124
  //-->
 
2125
</SCRIPT>
 
2126
<NOSCRIPT>
 
2127
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
 
2128
</NOSCRIPT>
 
2129
 
 
2130
</FONT></TD>
 
2131
</TR>
 
2132
<TR>
 
2133
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
2134
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
2135
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
2136
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
2137
</TR>
 
2138
</TABLE>
 
2139
<A NAME="skip-navbar_bottom"></A>
 
2140
<!-- ======== END OF BOTTOM NAVBAR ======= -->
 
2141
 
 
2142
<HR>
 
2143
 
 
2144
</BODY>
 
2145
</HTML>