aboutsummaryrefslogtreecommitdiffstats
path: root/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/Context.html
blob: 64fb6378702a8ae5a50cb78968c060f3f2b5cce5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0) on Thu Mar 06 17:19:14 EST 2008 -->
<TITLE>
Context (Rhino)
</TITLE>

<META NAME="date" CONTENT="2008-03-06">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Context (Rhino)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/mozilla/javascript/CompilerEnvirons.html" title="class in org.mozilla.javascript"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../org/mozilla/javascript/ContextAction.html" title="interface in org.mozilla.javascript"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?org/mozilla/javascript/Context.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Context.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  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>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
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>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.mozilla.javascript</FONT>
<BR>
Class Context</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.mozilla.javascript.Context</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>Context</B><DT>extends java.lang.Object</DL>
</PRE>

<P>
This class represents the runtime context of an executing script.

 Before executing a script, an instance of Context must be created
 and associated with the thread that will be executing the script.
 The Context will be used to store information about the executing
 of the script such as the call stack. Contexts are associated with
 the current thread  using the <A HREF="../../../org/mozilla/javascript/Context.html#call(org.mozilla.javascript.ContextAction)"><CODE>call(ContextAction)</CODE></A>
 or <A HREF="../../../org/mozilla/javascript/Context.html#enter()"><CODE>enter()</CODE></A> methods.<p>

 Different forms of script execution are supported. Scripts may be
 evaluated from the source directly, or first compiled and then later
 executed. Interactive execution is also supported.<p>

 Some aspects of script execution, such as type conversions and
 object creation, may be accessed directly through methods of
 Context.
<P>

<P>
<DL>
<DT><B>Author:</B></DT>
  <DD>Norris Boyd, Brendan Eich</DD>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript"><CODE>Scriptable</CODE></A></DL>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.Object[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#emptyArgs">emptyArgs</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenient value to use as zero-length array of objects.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#errorReporterProperty">errorReporterProperty</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_DYNAMIC_SCOPE">FEATURE_DYNAMIC_SCOPE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control if dynamic scope should be used for name access.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_E4X">FEATURE_E4X</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control if support for E4X(ECMAScript for XML) extension is available.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_ENHANCED_JAVA_ACCESS">FEATURE_ENHANCED_JAVA_ACCESS</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables enhanced access to Java.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_LOCATION_INFORMATION_IN_ERROR">FEATURE_LOCATION_INFORMATION_IN_ERROR</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When the feature is on Rhino will add a "fileName" and "lineNumber"
 properties to Error objects automatically.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME">FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control if member expression as function name extension is available.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_NON_ECMA_GET_YEAR">FEATURE_NON_ECMA_GET_YEAR</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Controls behaviour of <tt>Date.prototype.getYear()</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_PARENT_PROTO_PROPERTIES">FEATURE_PARENT_PROTO_PROPERTIES</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control if properties <tt>__proto__</tt> and <tt>__parent__</tt>
 are treated specially.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_PARENT_PROTO_PROPRTIES">FEATURE_PARENT_PROTO_PROPRTIES</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>In previous releases, this name was given to
 FEATURE_PARENT_PROTO_PROPERTIES.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER">FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control if reserved keywords are treated as identifiers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_STRICT_EVAL">FEATURE_STRICT_EVAL</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control if strict eval mode is enabled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_STRICT_MODE">FEATURE_STRICT_MODE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Controls whether JS 1.5 'strict mode' is enabled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_STRICT_VARS">FEATURE_STRICT_VARS</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control if strict variable mode is enabled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_TO_STRING_AS_SOURCE">FEATURE_TO_STRING_AS_SOURCE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control if <tt>toString()</tt> should returns the same result
 as  <tt>toSource()</tt> when applied to objects and arrays.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_WARNING_AS_ERROR">FEATURE_WARNING_AS_ERROR</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Controls whether a warning should be treated as an error.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#generateObserverCount">generateObserverCount</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#languageVersionProperty">languageVersionProperty</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_0">VERSION_1_0</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JavaScript 1.0</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_1">VERSION_1_1</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JavaScript 1.1</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_2">VERSION_1_2</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JavaScript 1.2</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_3">VERSION_1_3</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JavaScript 1.3</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_4">VERSION_1_4</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JavaScript 1.4</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_5">VERSION_1_5</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JavaScript 1.5</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_6">VERSION_1_6</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JavaScript 1.6</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_7">VERSION_1_7</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JavaScript 1.7</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_DEFAULT">VERSION_DEFAULT</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default version.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#VERSION_UNKNOWN">VERSION_UNKNOWN</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The unknown version.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#Context()">Context</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/mozilla/javascript/ContextFactory.html#enter()"><CODE>ContextFactory.enter()</CODE></A> or 
 <A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A> instead.</I></TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#addActivationName(java.lang.String)">addActivationName</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a name to the list of names forcing the creation of real
 activation objects for functions.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#addContextListener(org.mozilla.javascript.ContextListener)">addContextListener</A></B>(org.mozilla.javascript.ContextListener&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A></B>(java.beans.PropertyChangeListener&nbsp;l)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register an object to receive notifications when a bound property
 has changed</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#call(org.mozilla.javascript.ContextAction)">call</A></B>(<A HREF="../../../org/mozilla/javascript/ContextAction.html" title="interface in org.mozilla.javascript">ContextAction</A>&nbsp;action)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A> instead as 
 this method relies on usage of a static singleton "global" 
 ContextFactory.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#call(org.mozilla.javascript.ContextFactory, org.mozilla.javascript.Callable, org.mozilla.javascript.Scriptable, org.mozilla.javascript.Scriptable, java.lang.Object[])">call</A></B>(<A HREF="../../../org/mozilla/javascript/ContextFactory.html" title="class in org.mozilla.javascript">ContextFactory</A>&nbsp;factory,
     <A HREF="../../../org/mozilla/javascript/Callable.html" title="interface in org.mozilla.javascript">Callable</A>&nbsp;callable,
     <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
     <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;thisObj,
     java.lang.Object[]&nbsp;args)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call <A HREF="../../../org/mozilla/javascript/Callable.html#call(org.mozilla.javascript.Context, org.mozilla.javascript.Scriptable, org.mozilla.javascript.Scriptable, java.lang.Object[])"><CODE>Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
               Object[] args)</CODE></A>
 using the Context instance associated with the current thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#checkLanguageVersion(int)">checkLanguageVersion</A></B>(int&nbsp;version)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#checkOptimizationLevel(int)">checkOptimizationLevel</A></B>(int&nbsp;optimizationLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Function.html" title="interface in org.mozilla.javascript">Function</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#compileFunction(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.String, int, java.lang.Object)">compileFunction</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                java.lang.String&nbsp;source,
                java.lang.String&nbsp;sourceName,
                int&nbsp;lineno,
                java.lang.Object&nbsp;securityDomain)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compile a JavaScript function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#compileReader(java.io.Reader, java.lang.String, int, java.lang.Object)">compileReader</A></B>(java.io.Reader&nbsp;in,
              java.lang.String&nbsp;sourceName,
              int&nbsp;lineno,
              java.lang.Object&nbsp;securityDomain)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles the source in the given reader.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#compileReader(org.mozilla.javascript.Scriptable, java.io.Reader, java.lang.String, int, java.lang.Object)">compileReader</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
              java.io.Reader&nbsp;in,
              java.lang.String&nbsp;sourceName,
              int&nbsp;lineno,
              java.lang.Object&nbsp;securityDomain)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#compileString(java.lang.String, java.lang.String, int, java.lang.Object)">compileString</A></B>(java.lang.String&nbsp;source,
              java.lang.String&nbsp;sourceName,
              int&nbsp;lineno,
              java.lang.Object&nbsp;securityDomain)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles the source in the given string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/GeneratedClassLoader.html" title="interface in org.mozilla.javascript">GeneratedClassLoader</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#createClassLoader(java.lang.ClassLoader)">createClassLoader</A></B>(java.lang.ClassLoader&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create class loader for generated classes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#decompileFunction(org.mozilla.javascript.Function, int)">decompileFunction</A></B>(<A HREF="../../../org/mozilla/javascript/Function.html" title="interface in org.mozilla.javascript">Function</A>&nbsp;fun,
                  int&nbsp;indent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decompile a JavaScript Function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#decompileFunctionBody(org.mozilla.javascript.Function, int)">decompileFunctionBody</A></B>(<A HREF="../../../org/mozilla/javascript/Function.html" title="interface in org.mozilla.javascript">Function</A>&nbsp;fun,
                      int&nbsp;indent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decompile the body of a JavaScript Function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#decompileScript(org.mozilla.javascript.Script, int)">decompileScript</A></B>(<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A>&nbsp;script,
                int&nbsp;indent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decompile the script.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#enter()">enter</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/mozilla/javascript/ContextFactory.html#enter()"><CODE>ContextFactory.enter()</CODE></A> or 
 <A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A> instead as this method relies
 on usage of a static singleton "global" ContextFactory.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#enter(org.mozilla.javascript.Context)">enter</A></B>(<A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A>&nbsp;cx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/mozilla/javascript/ContextFactory.html#enterContext(org.mozilla.javascript.Context)"><CODE>ContextFactory.enterContext(Context)</CODE></A> instead as 
 this method relies on usage of a static singleton "global" ContextFactory.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#evaluateReader(org.mozilla.javascript.Scriptable, java.io.Reader, java.lang.String, int, java.lang.Object)">evaluateReader</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
               java.io.Reader&nbsp;in,
               java.lang.String&nbsp;sourceName,
               int&nbsp;lineno,
               java.lang.Object&nbsp;securityDomain)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluate a reader as JavaScript source.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#evaluateString(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.String, int, java.lang.Object)">evaluateString</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
               java.lang.String&nbsp;source,
               java.lang.String&nbsp;sourceName,
               int&nbsp;lineno,
               java.lang.Object&nbsp;securityDomain)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluate a JavaScript source string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#exit()">exit</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit a block of code requiring a Context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.ClassLoader</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getApplicationClassLoader()">getApplicationClassLoader</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getCurrentContext()">getCurrentContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current Context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/debug/DebuggableScript.html" title="interface in org.mozilla.javascript.debug">DebuggableScript</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getDebuggableView(org.mozilla.javascript.Script)">getDebuggableView</A></B>(<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A>&nbsp;script)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return DebuggableScript instance if any associated with the script.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.mozilla.javascript.debug.Debugger</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getDebugger()">getDebugger</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the current debugger.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getDebuggerContextData()">getDebuggerContextData</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the debugger context data associated with current context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.mozilla.javascript.xml.XMLLib.Factory</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getE4xImplementationFactory()">getE4xImplementationFactory</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an object which specifies an E4X implementation to use within
                this <code>Context</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getElements(org.mozilla.javascript.Scriptable)">getElements</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;object)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the elements of a JavaScript array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript">ErrorReporter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getErrorReporter()">getErrorReporter</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current error reporter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/ContextFactory.html" title="class in org.mozilla.javascript">ContextFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getFactory()">getFactory</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return <A HREF="../../../org/mozilla/javascript/ContextFactory.html" title="class in org.mozilla.javascript"><CODE>ContextFactory</CODE></A> instance used to create this Context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getImplementationVersion()">getImplementationVersion</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the implementation version.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getInstructionObserverThreshold()">getInstructionObserverThreshold</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get threshold of executed instructions counter that triggers call to
 <code>observeInstructionCount()</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getLanguageVersion()">getLanguageVersion</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current language version.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.Locale</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getLocale()">getLocale</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current locale.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getMaximumInterpreterStackDepth()">getMaximumInterpreterStackDepth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum stack depth (in terms of number of call frames) 
 allowed in a single invocation of interpreter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getOptimizationLevel()">getOptimizationLevel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current optimization level.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getThreadLocal(java.lang.Object)">getThreadLocal</A></B>(java.lang.Object&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a value corresponding to a key.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getUndefinedValue()">getUndefinedValue</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the singleton object that represents the JavaScript Undefined value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/WrapFactory.html" title="class in org.mozilla.javascript">WrapFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#getWrapFactory()">getWrapFactory</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the current WrapFactory, or null if none is defined.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#hasCompileFunctionsWithDynamicScope()">hasCompileFunctionsWithDynamicScope</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)">hasFeature</A></B>(int&nbsp;featureIndex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Controls certain aspects of script semantics.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript">ScriptableObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#initStandardObjects()">initStandardObjects</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the standard objects.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#initStandardObjects(org.mozilla.javascript.ScriptableObject)">initStandardObjects</A></B>(<A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript">ScriptableObject</A>&nbsp;scope)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the standard objects.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript">ScriptableObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#initStandardObjects(org.mozilla.javascript.ScriptableObject, boolean)">initStandardObjects</A></B>(<A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript">ScriptableObject</A>&nbsp;scope,
                    boolean&nbsp;sealed)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the standard objects.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#isActivationNeeded(java.lang.String)">isActivationNeeded</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether the name is in the list of names of objects
 forcing the creation of activation objects.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#isGeneratingDebug()">isGeneratingDebug</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell whether debug information is being generated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#isGeneratingDebugChanged()">isGeneratingDebugChanged</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#isGeneratingSource()">isGeneratingSource</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell whether source information is being generated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#isSealed()">isSealed</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if this is a sealed Context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#isValidLanguageVersion(int)">isValidLanguageVersion</A></B>(int&nbsp;version)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#isValidOptimizationLevel(int)">isValidOptimizationLevel</A></B>(int&nbsp;optimizationLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#javaToJS(java.lang.Object, org.mozilla.javascript.Scriptable)">javaToJS</A></B>(java.lang.Object&nbsp;value,
         <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenient method to convert java value to its closest representation
 in JavaScript.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#jsToJava(java.lang.Object, java.lang.Class)">jsToJava</A></B>(java.lang.Object&nbsp;value,
         java.lang.Class&nbsp;desiredType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a JavaScript value into the desired type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#newArray(org.mozilla.javascript.Scriptable, int)">newArray</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
         int&nbsp;length)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an array with a specified initial length.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#newArray(org.mozilla.javascript.Scriptable, java.lang.Object[])">newArray</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
         java.lang.Object[]&nbsp;elements)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an array with a set of initial elements.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#newObject(org.mozilla.javascript.Scriptable)">newObject</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new JavaScript object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#newObject(org.mozilla.javascript.Scriptable, java.lang.String)">newObject</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
          java.lang.String&nbsp;constructorName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new JavaScript object by executing the named constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#newObject(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object[])">newObject</A></B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
          java.lang.String&nbsp;constructorName,
          java.lang.Object[]&nbsp;args)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new JavaScript object by executing the named constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#observeInstructionCount(int)">observeInstructionCount</A></B>(int&nbsp;instructionCount)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allow application to monitor counter of executed script instructions
 in Context subclasses.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#putThreadLocal(java.lang.Object, java.lang.Object)">putThreadLocal</A></B>(java.lang.Object&nbsp;key,
               java.lang.Object&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Put a value that can later be retrieved using a given key.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#removeActivationName(java.lang.String)">removeActivationName</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a name from the list of names forcing the creation of real
 activation objects for functions.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#removeContextListener(org.mozilla.javascript.ContextListener)">removeContextListener</A></B>(org.mozilla.javascript.ContextListener&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A></B>(java.beans.PropertyChangeListener&nbsp;l)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove an object from the list of objects registered to receive
 notification of changes to a bounded property</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#removeThreadLocal(java.lang.Object)">removeThreadLocal</A></B>(java.lang.Object&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove values from thread-local storage.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#reportError(java.lang.String)">reportError</A></B>(java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report an error using the error reporter for the current thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#reportError(java.lang.String, java.lang.String, int, java.lang.String, int)">reportError</A></B>(java.lang.String&nbsp;message,
            java.lang.String&nbsp;sourceName,
            int&nbsp;lineno,
            java.lang.String&nbsp;lineSource,
            int&nbsp;lineOffset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report an error using the error reporter for the current thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#reportRuntimeError(java.lang.String)">reportRuntimeError</A></B>(java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report a runtime error using the error reporter for the current thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#reportRuntimeError(java.lang.String, java.lang.String, int, java.lang.String, int)">reportRuntimeError</A></B>(java.lang.String&nbsp;message,
                   java.lang.String&nbsp;sourceName,
                   int&nbsp;lineno,
                   java.lang.String&nbsp;lineSource,
                   int&nbsp;lineOffset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report a runtime error using the error reporter for the current thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#reportWarning(java.lang.String)">reportWarning</A></B>(java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report a warning using the error reporter for the current thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#reportWarning(java.lang.String, java.lang.String, int, java.lang.String, int)">reportWarning</A></B>(java.lang.String&nbsp;message,
              java.lang.String&nbsp;sourceName,
              int&nbsp;lineno,
              java.lang.String&nbsp;lineSource,
              int&nbsp;lineOffset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report a warning using the error reporter for the current thread.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#reportWarning(java.lang.String, java.lang.Throwable)">reportWarning</A></B>(java.lang.String&nbsp;message,
              java.lang.Throwable&nbsp;t)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#seal(java.lang.Object)">seal</A></B>(java.lang.Object&nbsp;sealKey)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Seal this Context object so any attempt to modify any of its properties
 including calling <A HREF="../../../org/mozilla/javascript/Context.html#enter()"><CODE>enter()</CODE></A> and <A HREF="../../../org/mozilla/javascript/Context.html#exit()"><CODE>exit()</CODE></A> methods will
 throw an exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setApplicationClassLoader(java.lang.ClassLoader)">setApplicationClassLoader</A></B>(java.lang.ClassLoader&nbsp;loader)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setCachingEnabled(boolean)">setCachingEnabled</A></B>(boolean&nbsp;cachingEnabled)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setClassShutter(org.mozilla.javascript.ClassShutter)">setClassShutter</A></B>(<A HREF="../../../org/mozilla/javascript/ClassShutter.html" title="interface in org.mozilla.javascript">ClassShutter</A>&nbsp;shutter)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the LiveConnect access filter for this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setCompileFunctionsWithDynamicScope(boolean)">setCompileFunctionsWithDynamicScope</A></B>(boolean&nbsp;flag)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setDebugger(org.mozilla.javascript.debug.Debugger, java.lang.Object)">setDebugger</A></B>(org.mozilla.javascript.debug.Debugger&nbsp;debugger,
            java.lang.Object&nbsp;contextData)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the associated debugger.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript">ErrorReporter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setErrorReporter(org.mozilla.javascript.ErrorReporter)">setErrorReporter</A></B>(<A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript">ErrorReporter</A>&nbsp;reporter)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change the current error reporter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setGenerateObserverCount(boolean)">setGenerateObserverCount</A></B>(boolean&nbsp;generateObserverCount)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn on or off generation of code with callbacks to
 track the count of executed instructions.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setGeneratingDebug(boolean)">setGeneratingDebug</A></B>(boolean&nbsp;generatingDebug)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify whether or not debug information should be generated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setGeneratingSource(boolean)">setGeneratingSource</A></B>(boolean&nbsp;generatingSource)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify whether or not source information should be generated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setInstructionObserverThreshold(int)">setInstructionObserverThreshold</A></B>(int&nbsp;threshold)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set threshold of executed instructions counter that triggers call to
 <code>observeInstructionCount()</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setLanguageVersion(int)">setLanguageVersion</A></B>(int&nbsp;version)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the language version.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.Locale</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setLocale(java.util.Locale)">setLocale</A></B>(java.util.Locale&nbsp;loc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the current locale.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setMaximumInterpreterStackDepth(int)">setMaximumInterpreterStackDepth</A></B>(int&nbsp;max)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum stack depth (in terms of number of call frames) 
 allowed in a single invocation of interpreter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setOptimizationLevel(int)">setOptimizationLevel</A></B>(int&nbsp;optimizationLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the current optimization level.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setSecurityController(org.mozilla.javascript.SecurityController)">setSecurityController</A></B>(<A HREF="../../../org/mozilla/javascript/SecurityController.html" title="class in org.mozilla.javascript">SecurityController</A>&nbsp;controller)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the security controller for this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#setWrapFactory(org.mozilla.javascript.WrapFactory)">setWrapFactory</A></B>(<A HREF="../../../org/mozilla/javascript/WrapFactory.html" title="class in org.mozilla.javascript">WrapFactory</A>&nbsp;wrapFactory)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a WrapFactory for this Context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#stringIsCompilableUnit(java.lang.String)">stringIsCompilableUnit</A></B>(java.lang.String&nbsp;source)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether a string is ready to be compiled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.RuntimeException</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#throwAsScriptRuntimeEx(java.lang.Throwable)">throwAsScriptRuntimeEx</A></B>(java.lang.Throwable&nbsp;e)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rethrow the exception wrapping it as the script runtime exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#toBoolean(java.lang.Object)">toBoolean</A></B>(java.lang.Object&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert the value to a JavaScript boolean value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#toNumber(java.lang.Object)">toNumber</A></B>(java.lang.Object&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert the value to a JavaScript Number value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#toObject(java.lang.Object, org.mozilla.javascript.Scriptable)">toObject</A></B>(java.lang.Object&nbsp;value,
         <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert the value to an JavaScript object value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#toObject(java.lang.Object, org.mozilla.javascript.Scriptable, java.lang.Class)">toObject</A></B>(java.lang.Object&nbsp;value,
         <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
         java.lang.Class&nbsp;staticType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#toString(java.lang.Object)">toString</A></B>(java.lang.Object&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert the value to a JavaScript String value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#toType(java.lang.Object, java.lang.Class)">toType</A></B>(java.lang.Object&nbsp;value,
       java.lang.Class&nbsp;desiredType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/Context.html#unseal(java.lang.Object)">unseal</A></B>(java.lang.Object&nbsp;sealKey)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unseal previously sealed Context object.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="VERSION_UNKNOWN"><!-- --></A><H3>
VERSION_UNKNOWN</H3>
<PRE>
public static final int <B>VERSION_UNKNOWN</B></PRE>
<DL>
<DD>The unknown version.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_UNKNOWN">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_DEFAULT"><!-- --></A><H3>
VERSION_DEFAULT</H3>
<PRE>
public static final int <B>VERSION_DEFAULT</B></PRE>
<DL>
<DD>The default version.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_DEFAULT">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_1_0"><!-- --></A><H3>
VERSION_1_0</H3>
<PRE>
public static final int <B>VERSION_1_0</B></PRE>
<DL>
<DD>JavaScript 1.0
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_1_0">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_1_1"><!-- --></A><H3>
VERSION_1_1</H3>
<PRE>
public static final int <B>VERSION_1_1</B></PRE>
<DL>
<DD>JavaScript 1.1
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_1_1">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_1_2"><!-- --></A><H3>
VERSION_1_2</H3>
<PRE>
public static final int <B>VERSION_1_2</B></PRE>
<DL>
<DD>JavaScript 1.2
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_1_2">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_1_3"><!-- --></A><H3>
VERSION_1_3</H3>
<PRE>
public static final int <B>VERSION_1_3</B></PRE>
<DL>
<DD>JavaScript 1.3
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_1_3">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_1_4"><!-- --></A><H3>
VERSION_1_4</H3>
<PRE>
public static final int <B>VERSION_1_4</B></PRE>
<DL>
<DD>JavaScript 1.4
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_1_4">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_1_5"><!-- --></A><H3>
VERSION_1_5</H3>
<PRE>
public static final int <B>VERSION_1_5</B></PRE>
<DL>
<DD>JavaScript 1.5
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_1_5">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_1_6"><!-- --></A><H3>
VERSION_1_6</H3>
<PRE>
public static final int <B>VERSION_1_6</B></PRE>
<DL>
<DD>JavaScript 1.6
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_1_6">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="VERSION_1_7"><!-- --></A><H3>
VERSION_1_7</H3>
<PRE>
public static final int <B>VERSION_1_7</B></PRE>
<DL>
<DD>JavaScript 1.7
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.VERSION_1_7">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_NON_ECMA_GET_YEAR"><!-- --></A><H3>
FEATURE_NON_ECMA_GET_YEAR</H3>
<PRE>
public static final int <B>FEATURE_NON_ECMA_GET_YEAR</B></PRE>
<DL>
<DD>Controls behaviour of <tt>Date.prototype.getYear()</tt>.
 If <tt>hasFeature(FEATURE_NON_ECMA_GET_YEAR)</tt> returns true,
 Date.prototype.getYear subtructs 1900 only if 1900 <= date < 2000.
 The default behavior of <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> is always to subtruct
 1900 as rquired by ECMAScript B.2.4.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_NON_ECMA_GET_YEAR">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME"><!-- --></A><H3>
FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME</H3>
<PRE>
public static final int <B>FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME</B></PRE>
<DL>
<DD>Control if member expression as function name extension is available.
 If <tt>hasFeature(FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)</tt> returns
 true, allow <tt>function memberExpression(args) { body }</tt> to be
 syntax sugar for <tt>memberExpression = function(args) { body }</tt>,
 when memberExpression is not a simple identifier.
 See ECMAScript-262, section 11.2 for definition of memberExpression.
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns false.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER"><!-- --></A><H3>
FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER</H3>
<PRE>
public static final int <B>FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER</B></PRE>
<DL>
<DD>Control if reserved keywords are treated as identifiers.
 If <tt>hasFeature(RESERVED_KEYWORD_AS_IDENTIFIER)</tt> returns true,
 treat future reserved keyword (see  Ecma-262, section 7.5.3) as ordinary
 identifiers but warn about this usage.

 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns false.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_TO_STRING_AS_SOURCE"><!-- --></A><H3>
FEATURE_TO_STRING_AS_SOURCE</H3>
<PRE>
public static final int <B>FEATURE_TO_STRING_AS_SOURCE</B></PRE>
<DL>
<DD>Control if <tt>toString()</tt> should returns the same result
 as  <tt>toSource()</tt> when applied to objects and arrays.
 If <tt>hasFeature(FEATURE_TO_STRING_AS_SOURCE)</tt> returns true,
 calling <tt>toString()</tt> on JS objects gives the same result as
 calling <tt>toSource()</tt>. That is it returns JS source with code
 to create an object with all enumeratable fields of the original object
 instead of printing <tt>[object <i>result of
 <A HREF="../../../org/mozilla/javascript/Scriptable.html#getClassName()"><CODE>Scriptable.getClassName()</CODE></A></i>]</tt>.
 <p>
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns true only if
 the current JS version is set to <A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_2"><CODE>VERSION_1_2</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_TO_STRING_AS_SOURCE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_PARENT_PROTO_PROPERTIES"><!-- --></A><H3>
FEATURE_PARENT_PROTO_PROPERTIES</H3>
<PRE>
public static final int <B>FEATURE_PARENT_PROTO_PROPERTIES</B></PRE>
<DL>
<DD>Control if properties <tt>__proto__</tt> and <tt>__parent__</tt>
 are treated specially.
 If <tt>hasFeature(FEATURE_PARENT_PROTO_PROPERTIES)</tt> returns true,
 treat <tt>__parent__</tt> and <tt>__proto__</tt> as special properties.
 <p>
 The properties allow to query and set scope and prototype chains for the
 objects. The special meaning of the properties is available
 only when they are used as the right hand side of the dot operator.
 For example, while <tt>x.__proto__ = y</tt> changes the prototype
 chain of the object <tt>x</tt> to point to <tt>y</tt>,
 <tt>x["__proto__"] = y</tt> simply assigns a new value to the property
 <tt>__proto__</tt> in <tt>x</tt> even when the feature is on.

 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns true.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_PARENT_PROTO_PROPERTIES">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_PARENT_PROTO_PROPRTIES"><!-- --></A><H3>
FEATURE_PARENT_PROTO_PROPRTIES</H3>
<PRE>
public static final int <B>FEATURE_PARENT_PROTO_PROPRTIES</B></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>In previous releases, this name was given to
 FEATURE_PARENT_PROTO_PROPERTIES.</I><DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_PARENT_PROTO_PROPRTIES">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_E4X"><!-- --></A><H3>
FEATURE_E4X</H3>
<PRE>
public static final int <B>FEATURE_E4X</B></PRE>
<DL>
<DD>Control if support for E4X(ECMAScript for XML) extension is available.
 If hasFeature(FEATURE_E4X) returns true, the XML syntax is available.
 <p>
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns true if
 the current JS version is set to <A HREF="../../../org/mozilla/javascript/Context.html#VERSION_DEFAULT"><CODE>VERSION_DEFAULT</CODE></A>
 or is at least <A HREF="../../../org/mozilla/javascript/Context.html#VERSION_1_6"><CODE>VERSION_1_6</CODE></A>.
<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.6 Release 1</DD>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_E4X">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_DYNAMIC_SCOPE"><!-- --></A><H3>
FEATURE_DYNAMIC_SCOPE</H3>
<PRE>
public static final int <B>FEATURE_DYNAMIC_SCOPE</B></PRE>
<DL>
<DD>Control if dynamic scope should be used for name access.
 If hasFeature(FEATURE_DYNAMIC_SCOPE) returns true, then the name lookup
 during name resolution will use the top scope of the script or function
 which is at the top of JS execution stack instead of the top scope of the
 script or function from the current stack frame if the top scope of
 the top stack frame contains the top scope of the current stack frame
 on its prototype chain.
 <p>
 This is useful to define shared scope containing functions that can
 be called from scripts and functions using private scopes.
 <p>
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns false.
<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.6 Release 1</DD>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_DYNAMIC_SCOPE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_STRICT_VARS"><!-- --></A><H3>
FEATURE_STRICT_VARS</H3>
<PRE>
public static final int <B>FEATURE_STRICT_VARS</B></PRE>
<DL>
<DD>Control if strict variable mode is enabled.
 When the feature is on Rhino reports runtime errors if assignment
 to a global variable that does not exist is executed. When the feature
 is off such assignments creates new variable in the global scope  as
 required by ECMA 262.
 <p>
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns false.
<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.6 Release 1</DD>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_STRICT_VARS">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_STRICT_EVAL"><!-- --></A><H3>
FEATURE_STRICT_EVAL</H3>
<PRE>
public static final int <B>FEATURE_STRICT_EVAL</B></PRE>
<DL>
<DD>Control if strict eval mode is enabled.
 When the feature is on Rhino reports runtime errors if non-string
 argument is passed to the eval function. When the feature is off
 eval simply return non-string argument as is without performing any
 evaluation as required by ECMA 262.
 <p>
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns false.
<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.6 Release 1</DD>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_STRICT_EVAL">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_LOCATION_INFORMATION_IN_ERROR"><!-- --></A><H3>
FEATURE_LOCATION_INFORMATION_IN_ERROR</H3>
<PRE>
public static final int <B>FEATURE_LOCATION_INFORMATION_IN_ERROR</B></PRE>
<DL>
<DD>When the feature is on Rhino will add a "fileName" and "lineNumber"
 properties to Error objects automatically. When the feature is off, you
 have to explicitly pass them as the second and third argument to the
 Error constructor. Note that neither behaviour is fully ECMA 262 
 compliant (as 262 doesn't specify a three-arg constructor), but keeping 
 the feature off results in Error objects that don't have
 additional non-ECMA properties when constructed using the ECMA-defined
 single-arg constructor and is thus desirable if a stricter ECMA 
 compliance is desired, specifically adherence to the point 15.11.5. of
 the standard.
 <p>
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns false.
<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.6 Release 6</DD>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_LOCATION_INFORMATION_IN_ERROR">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_STRICT_MODE"><!-- --></A><H3>
FEATURE_STRICT_MODE</H3>
<PRE>
public static final int <B>FEATURE_STRICT_MODE</B></PRE>
<DL>
<DD>Controls whether JS 1.5 'strict mode' is enabled.
 When the feature is on, Rhino reports more than a dozen different
 warnings.  When the feature is off, these warnings are not generated.
 FEATURE_STRICT_MODE implies FEATURE_STRICT_VARS and FEATURE_STRICT_EVAL.
 <p>
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns false.
<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.6 Release 6</DD>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_STRICT_MODE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_WARNING_AS_ERROR"><!-- --></A><H3>
FEATURE_WARNING_AS_ERROR</H3>
<PRE>
public static final int <B>FEATURE_WARNING_AS_ERROR</B></PRE>
<DL>
<DD>Controls whether a warning should be treated as an error.
<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.6 Release 6</DD>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_WARNING_AS_ERROR">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FEATURE_ENHANCED_JAVA_ACCESS"><!-- --></A><H3>
FEATURE_ENHANCED_JAVA_ACCESS</H3>
<PRE>
public static final int <B>FEATURE_ENHANCED_JAVA_ACCESS</B></PRE>
<DL>
<DD>Enables enhanced access to Java. 
 Specifically, controls whether private and protected members can be
 accessed, and whether scripts can catch all Java exceptions.
 <p>
 Note that this feature should only be enabled for trusted scripts.
 <p>
 By default <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A> returns false.
<P>
<DL>
<DT><B>Since:</B></DT>
  <DD>1.7 Release 1</DD>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.FEATURE_ENHANCED_JAVA_ACCESS">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="languageVersionProperty"><!-- --></A><H3>
languageVersionProperty</H3>
<PRE>
public static final java.lang.String <B>languageVersionProperty</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.languageVersionProperty">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="errorReporterProperty"><!-- --></A><H3>
errorReporterProperty</H3>
<PRE>
public static final java.lang.String <B>errorReporterProperty</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.mozilla.javascript.Context.errorReporterProperty">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="emptyArgs"><!-- --></A><H3>
emptyArgs</H3>
<PRE>
public static final java.lang.Object[] <B>emptyArgs</B></PRE>
<DL>
<DD>Convenient value to use as zero-length array of objects.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="generateObserverCount"><!-- --></A><H3>
generateObserverCount</H3>
<PRE>
public boolean <B>generateObserverCount</B></PRE>
<DL>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="Context()"><!-- --></A><H3>
Context</H3>
<PRE>
public <B>Context</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/mozilla/javascript/ContextFactory.html#enter()"><CODE>ContextFactory.enter()</CODE></A> or 
 <A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A> instead.</I>
<P>
<DD>Create a new Context.

 Note that the Context must be associated with a thread before
 it can be used to execute a script.
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getCurrentContext()"><!-- --></A><H3>
getCurrentContext</H3>
<PRE>
public static <A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A> <B>getCurrentContext</B>()</PRE>
<DL>
<DD>Get the current Context.

 The current Context is per-thread; this method looks up
 the Context associated with the current thread. <p>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the Context associated with the current thread, or
         null if no context is associated with the current
         thread.<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ContextFactory.html#enterContext()"><CODE>ContextFactory.enterContext()</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="enter()"><!-- --></A><H3>
enter</H3>
<PRE>
public static <A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A> <B>enter</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/mozilla/javascript/ContextFactory.html#enter()"><CODE>ContextFactory.enter()</CODE></A> or 
 <A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A> instead as this method relies
 on usage of a static singleton "global" ContextFactory.</I>
<P>
<DD>Same as calling <A HREF="../../../org/mozilla/javascript/ContextFactory.html#enterContext()"><CODE>ContextFactory.enterContext()</CODE></A> on the global
 ContextFactory instance.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>a Context associated with the current thread<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#getCurrentContext()"><CODE>getCurrentContext()</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#exit()"><CODE>exit()</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#call(org.mozilla.javascript.ContextAction)"><CODE>call(ContextAction)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="enter(org.mozilla.javascript.Context)"><!-- --></A><H3>
enter</H3>
<PRE>
public static <A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A> <B>enter</B>(<A HREF="../../../org/mozilla/javascript/Context.html" title="class in org.mozilla.javascript">Context</A>&nbsp;cx)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/mozilla/javascript/ContextFactory.html#enterContext(org.mozilla.javascript.Context)"><CODE>ContextFactory.enterContext(Context)</CODE></A> instead as 
 this method relies on usage of a static singleton "global" ContextFactory.</I>
<P>
<DD>Get a Context associated with the current thread, using
 the given Context if need be.
 <p>
 The same as <code>enter()</code> except that <code>cx</code>
 is associated with the current thread and returned if
 the current thread has no associated context and <code>cx</code>
 is not associated with any other thread.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cx</CODE> - a Context to associate with the thread if possible
<DT><B>Returns:</B><DD>a Context associated with the current thread<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ContextFactory.html#enterContext(org.mozilla.javascript.Context)"><CODE>ContextFactory.enterContext(Context)</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="exit()"><!-- --></A><H3>
exit</H3>
<PRE>
public static void <B>exit</B>()</PRE>
<DL>
<DD>Exit a block of code requiring a Context.

 Calling <code>exit()</code> will remove the association between
 the current thread and a Context if the prior call to
 <A HREF="../../../org/mozilla/javascript/ContextFactory.html#enterContext()"><CODE>ContextFactory.enterContext()</CODE></A> on this thread newly associated a 
 Context with this thread. Once the current thread no longer has an 
 associated Context, it cannot be used to execute JavaScript until it is 
 again associated with a Context.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ContextFactory.html#enterContext()"><CODE>ContextFactory.enterContext()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="call(org.mozilla.javascript.ContextAction)"><!-- --></A><H3>
call</H3>
<PRE>
public static java.lang.Object <B>call</B>(<A HREF="../../../org/mozilla/javascript/ContextAction.html" title="interface in org.mozilla.javascript">ContextAction</A>&nbsp;action)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A> instead as 
 this method relies on usage of a static singleton "global" 
 ContextFactory.</I>
<P>
<DD>Call <A HREF="../../../org/mozilla/javascript/ContextAction.html#run(org.mozilla.javascript.Context)"><CODE>ContextAction.run(Context cx)</CODE></A>
 using the Context instance associated with the current thread.
 If no Context is associated with the thread, then
 <tt>ContextFactory.getGlobal().makeContext()</tt> will be called to
 construct new Context instance. The instance will be temporary
 associated with the thread during call to
 <A HREF="../../../org/mozilla/javascript/ContextAction.html#run(org.mozilla.javascript.Context)"><CODE>ContextAction.run(Context)</CODE></A>.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>The result of <A HREF="../../../org/mozilla/javascript/ContextAction.html#run(org.mozilla.javascript.Context)"><CODE>ContextAction.run(Context)</CODE></A>.</DL>
</DD>
</DL>
<HR>

<A NAME="call(org.mozilla.javascript.ContextFactory, org.mozilla.javascript.Callable, org.mozilla.javascript.Scriptable, org.mozilla.javascript.Scriptable, java.lang.Object[])"><!-- --></A><H3>
call</H3>
<PRE>
public static java.lang.Object <B>call</B>(<A HREF="../../../org/mozilla/javascript/ContextFactory.html" title="class in org.mozilla.javascript">ContextFactory</A>&nbsp;factory,
                                    <A HREF="../../../org/mozilla/javascript/Callable.html" title="interface in org.mozilla.javascript">Callable</A>&nbsp;callable,
                                    <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                    <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;thisObj,
                                    java.lang.Object[]&nbsp;args)</PRE>
<DL>
<DD>Call <A HREF="../../../org/mozilla/javascript/Callable.html#call(org.mozilla.javascript.Context, org.mozilla.javascript.Scriptable, org.mozilla.javascript.Scriptable, java.lang.Object[])"><CODE>Callable.call(Context cx, Scriptable scope, Scriptable thisObj,
               Object[] args)</CODE></A>
 using the Context instance associated with the current thread.
 If no Context is associated with the thread, then
 <A HREF="../../../org/mozilla/javascript/ContextFactory.html#makeContext()"><CODE>ContextFactory.makeContext()</CODE></A> will be called to construct
 new Context instance. The instance will be temporary associated
 with the thread during call to <A HREF="../../../org/mozilla/javascript/ContextAction.html#run(org.mozilla.javascript.Context)"><CODE>ContextAction.run(Context)</CODE></A>.
 <p>
 It is allowed but not advisable to use null for <tt>factory</tt> 
 argument in which case the global static singleton ContextFactory 
 instance will be used to create new context instances.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ContextFactory.html#call(org.mozilla.javascript.ContextAction)"><CODE>ContextFactory.call(ContextAction)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="addContextListener(org.mozilla.javascript.ContextListener)"><!-- --></A><H3>
addContextListener</H3>
<PRE>
public static void <B>addContextListener</B>(org.mozilla.javascript.ContextListener&nbsp;listener)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ContextFactory.html#addListener(org.mozilla.javascript.ContextFactory.Listener)"><CODE>ContextFactory.addListener(ContextFactory.Listener)</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/ContextFactory.html#getGlobal()"><CODE>ContextFactory.getGlobal()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="removeContextListener(org.mozilla.javascript.ContextListener)"><!-- --></A><H3>
removeContextListener</H3>
<PRE>
public static void <B>removeContextListener</B>(org.mozilla.javascript.ContextListener&nbsp;listener)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ContextFactory.html#removeListener(org.mozilla.javascript.ContextFactory.Listener)"><CODE>ContextFactory.removeListener(ContextFactory.Listener)</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/ContextFactory.html#getGlobal()"><CODE>ContextFactory.getGlobal()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getFactory()"><!-- --></A><H3>
getFactory</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/ContextFactory.html" title="class in org.mozilla.javascript">ContextFactory</A> <B>getFactory</B>()</PRE>
<DL>
<DD>Return <A HREF="../../../org/mozilla/javascript/ContextFactory.html" title="class in org.mozilla.javascript"><CODE>ContextFactory</CODE></A> instance used to create this Context.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isSealed()"><!-- --></A><H3>
isSealed</H3>
<PRE>
public final boolean <B>isSealed</B>()</PRE>
<DL>
<DD>Checks if this is a sealed Context. A sealed Context instance does not
 allow to modify any of its properties and will throw an exception
 on any such attempt.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#seal(java.lang.Object)"><CODE>seal(Object sealKey)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="seal(java.lang.Object)"><!-- --></A><H3>
seal</H3>
<PRE>
public final void <B>seal</B>(java.lang.Object&nbsp;sealKey)</PRE>
<DL>
<DD>Seal this Context object so any attempt to modify any of its properties
 including calling <A HREF="../../../org/mozilla/javascript/Context.html#enter()"><CODE>enter()</CODE></A> and <A HREF="../../../org/mozilla/javascript/Context.html#exit()"><CODE>exit()</CODE></A> methods will
 throw an exception.
 <p>
 If <tt>sealKey</tt> is not null, calling
 <A HREF="../../../org/mozilla/javascript/Context.html#unseal(java.lang.Object)"><CODE>unseal(Object sealKey)</CODE></A> with the same key unseals
 the object. If <tt>sealKey</tt> is null, unsealing is no longer possible.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#isSealed()"><CODE>isSealed()</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#unseal(java.lang.Object)"><CODE>unseal(Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="unseal(java.lang.Object)"><!-- --></A><H3>
unseal</H3>
<PRE>
public final void <B>unseal</B>(java.lang.Object&nbsp;sealKey)</PRE>
<DL>
<DD>Unseal previously sealed Context object.
 The <tt>sealKey</tt> argument should not be null and should match
 <tt>sealKey</tt> suplied with the last call to
 <A HREF="../../../org/mozilla/javascript/Context.html#seal(java.lang.Object)"><CODE>seal(Object)</CODE></A> or an exception will be thrown.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#isSealed()"><CODE>isSealed()</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#seal(java.lang.Object)"><CODE>seal(Object sealKey)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getLanguageVersion()"><!-- --></A><H3>
getLanguageVersion</H3>
<PRE>
public final int <B>getLanguageVersion</B>()</PRE>
<DL>
<DD>Get the current language version.
 <p>
 The language version number affects JavaScript semantics as detailed
 in the overview documentation.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>an integer that is one of VERSION_1_0, VERSION_1_1, etc.</DL>
</DD>
</DL>
<HR>

<A NAME="setLanguageVersion(int)"><!-- --></A><H3>
setLanguageVersion</H3>
<PRE>
public void <B>setLanguageVersion</B>(int&nbsp;version)</PRE>
<DL>
<DD>Set the language version.

 <p>
 Setting the language version will affect functions and scripts compiled
 subsequently. See the overview documentation for version-specific
 behavior.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>version</CODE> - the version as specified by VERSION_1_0, VERSION_1_1, etc.</DL>
</DD>
</DL>
<HR>

<A NAME="isValidLanguageVersion(int)"><!-- --></A><H3>
isValidLanguageVersion</H3>
<PRE>
public static boolean <B>isValidLanguageVersion</B>(int&nbsp;version)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="checkLanguageVersion(int)"><!-- --></A><H3>
checkLanguageVersion</H3>
<PRE>
public static void <B>checkLanguageVersion</B>(int&nbsp;version)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getImplementationVersion()"><!-- --></A><H3>
getImplementationVersion</H3>
<PRE>
public final java.lang.String <B>getImplementationVersion</B>()</PRE>
<DL>
<DD>Get the implementation version.

 <p>
 The implementation version is of the form
 <pre>
    "<i>name langVer</i> <code>release</code> <i>relNum date</i>"
 </pre>
 where <i>name</i> is the name of the product, <i>langVer</i> is
 the language version, <i>relNum</i> is the release number, and
 <i>date</i> is the release date for that specific
 release in the form "yyyy mm dd".
<P>
<DD><DL>

<DT><B>Returns:</B><DD>a string that encodes the product, language version, release
         number, and date.</DL>
</DD>
</DL>
<HR>

<A NAME="getErrorReporter()"><!-- --></A><H3>
getErrorReporter</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript">ErrorReporter</A> <B>getErrorReporter</B>()</PRE>
<DL>
<DD>Get the current error reporter.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript"><CODE>ErrorReporter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setErrorReporter(org.mozilla.javascript.ErrorReporter)"><!-- --></A><H3>
setErrorReporter</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript">ErrorReporter</A> <B>setErrorReporter</B>(<A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript">ErrorReporter</A>&nbsp;reporter)</PRE>
<DL>
<DD>Change the current error reporter.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the previous error reporter<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript"><CODE>ErrorReporter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getLocale()"><!-- --></A><H3>
getLocale</H3>
<PRE>
public final java.util.Locale <B>getLocale</B>()</PRE>
<DL>
<DD>Get the current locale.  Returns the default locale if none has
 been set.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Locale</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setLocale(java.util.Locale)"><!-- --></A><H3>
setLocale</H3>
<PRE>
public final java.util.Locale <B>setLocale</B>(java.util.Locale&nbsp;loc)</PRE>
<DL>
<DD>Set the current locale.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Locale</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="addPropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>
addPropertyChangeListener</H3>
<PRE>
public final void <B>addPropertyChangeListener</B>(java.beans.PropertyChangeListener&nbsp;l)</PRE>
<DL>
<DD>Register an object to receive notifications when a bound property
 has changed
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>l</CODE> - the listener<DT><B>See Also:</B><DD><CODE>PropertyChangeEvent</CODE>, 
<A HREF="../../../org/mozilla/javascript/Context.html#removePropertyChangeListener(java.beans.PropertyChangeListener)"><CODE>removePropertyChangeListener(java.beans.PropertyChangeListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="removePropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>
removePropertyChangeListener</H3>
<PRE>
public final void <B>removePropertyChangeListener</B>(java.beans.PropertyChangeListener&nbsp;l)</PRE>
<DL>
<DD>Remove an object from the list of objects registered to receive
 notification of changes to a bounded property
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>l</CODE> - the listener<DT><B>See Also:</B><DD><CODE>PropertyChangeEvent</CODE>, 
<A HREF="../../../org/mozilla/javascript/Context.html#addPropertyChangeListener(java.beans.PropertyChangeListener)"><CODE>addPropertyChangeListener(java.beans.PropertyChangeListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="reportWarning(java.lang.String, java.lang.String, int, java.lang.String, int)"><!-- --></A><H3>
reportWarning</H3>
<PRE>
public static void <B>reportWarning</B>(java.lang.String&nbsp;message,
                                 java.lang.String&nbsp;sourceName,
                                 int&nbsp;lineno,
                                 java.lang.String&nbsp;lineSource,
                                 int&nbsp;lineOffset)</PRE>
<DL>
<DD>Report a warning using the error reporter for the current thread.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - the warning message to report<DD><CODE>sourceName</CODE> - a string describing the source, such as a filename<DD><CODE>lineno</CODE> - the starting line number<DD><CODE>lineSource</CODE> - the text of the line (may be null)<DD><CODE>lineOffset</CODE> - the offset into lineSource where problem was detected<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript"><CODE>ErrorReporter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="reportWarning(java.lang.String)"><!-- --></A><H3>
reportWarning</H3>
<PRE>
public static void <B>reportWarning</B>(java.lang.String&nbsp;message)</PRE>
<DL>
<DD>Report a warning using the error reporter for the current thread.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - the warning message to report<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript"><CODE>ErrorReporter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="reportWarning(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
reportWarning</H3>
<PRE>
public static void <B>reportWarning</B>(java.lang.String&nbsp;message,
                                 java.lang.Throwable&nbsp;t)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="reportError(java.lang.String, java.lang.String, int, java.lang.String, int)"><!-- --></A><H3>
reportError</H3>
<PRE>
public static void <B>reportError</B>(java.lang.String&nbsp;message,
                               java.lang.String&nbsp;sourceName,
                               int&nbsp;lineno,
                               java.lang.String&nbsp;lineSource,
                               int&nbsp;lineOffset)</PRE>
<DL>
<DD>Report an error using the error reporter for the current thread.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - the error message to report<DD><CODE>sourceName</CODE> - a string describing the source, such as a filename<DD><CODE>lineno</CODE> - the starting line number<DD><CODE>lineSource</CODE> - the text of the line (may be null)<DD><CODE>lineOffset</CODE> - the offset into lineSource where problem was detected<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript"><CODE>ErrorReporter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="reportError(java.lang.String)"><!-- --></A><H3>
reportError</H3>
<PRE>
public static void <B>reportError</B>(java.lang.String&nbsp;message)</PRE>
<DL>
<DD>Report an error using the error reporter for the current thread.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - the error message to report<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript"><CODE>ErrorReporter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="reportRuntimeError(java.lang.String, java.lang.String, int, java.lang.String, int)"><!-- --></A><H3>
reportRuntimeError</H3>
<PRE>
public static <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A> <B>reportRuntimeError</B>(java.lang.String&nbsp;message,
                                                    java.lang.String&nbsp;sourceName,
                                                    int&nbsp;lineno,
                                                    java.lang.String&nbsp;lineSource,
                                                    int&nbsp;lineOffset)</PRE>
<DL>
<DD>Report a runtime error using the error reporter for the current thread.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - the error message to report<DD><CODE>sourceName</CODE> - a string describing the source, such as a filename<DD><CODE>lineno</CODE> - the starting line number<DD><CODE>lineSource</CODE> - the text of the line (may be null)<DD><CODE>lineOffset</CODE> - the offset into lineSource where problem was detected
<DT><B>Returns:</B><DD>a runtime exception that will be thrown to terminate the
         execution of the script<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript"><CODE>ErrorReporter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="reportRuntimeError(java.lang.String)"><!-- --></A><H3>
reportRuntimeError</H3>
<PRE>
public static <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A> <B>reportRuntimeError</B>(java.lang.String&nbsp;message)</PRE>
<DL>
<DD>Report a runtime error using the error reporter for the current thread.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - the error message to report<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ErrorReporter.html" title="interface in org.mozilla.javascript"><CODE>ErrorReporter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="initStandardObjects()"><!-- --></A><H3>
initStandardObjects</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript">ScriptableObject</A> <B>initStandardObjects</B>()</PRE>
<DL>
<DD>Initialize the standard objects.

 Creates instances of the standard objects and their constructors
 (Object, String, Number, Date, etc.), setting up 'scope' to act
 as a global object as in ECMA 15.1.<p>

 This method must be called to initialize a scope before scripts
 can be evaluated in that scope.<p>

 This method does not affect the Context it is called upon.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the initialized scope</DL>
</DD>
</DL>
<HR>

<A NAME="initStandardObjects(org.mozilla.javascript.ScriptableObject)"><!-- --></A><H3>
initStandardObjects</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>initStandardObjects</B>(<A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript">ScriptableObject</A>&nbsp;scope)</PRE>
<DL>
<DD>Initialize the standard objects.

 Creates instances of the standard objects and their constructors
 (Object, String, Number, Date, etc.), setting up 'scope' to act
 as a global object as in ECMA 15.1.<p>

 This method must be called to initialize a scope before scripts
 can be evaluated in that scope.<p>

 This method does not affect the Context it is called upon.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to initialize, or null, in which case a new
        object will be created to serve as the scope
<DT><B>Returns:</B><DD>the initialized scope. The method returns the value of the scope
         argument if it is not null or newly allocated scope object which
         is an instance <A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript"><CODE>ScriptableObject</CODE></A>.</DL>
</DD>
</DL>
<HR>

<A NAME="initStandardObjects(org.mozilla.javascript.ScriptableObject, boolean)"><!-- --></A><H3>
initStandardObjects</H3>
<PRE>
public <A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript">ScriptableObject</A> <B>initStandardObjects</B>(<A HREF="../../../org/mozilla/javascript/ScriptableObject.html" title="class in org.mozilla.javascript">ScriptableObject</A>&nbsp;scope,
                                            boolean&nbsp;sealed)</PRE>
<DL>
<DD>Initialize the standard objects.

 Creates instances of the standard objects and their constructors
 (Object, String, Number, Date, etc.), setting up 'scope' to act
 as a global object as in ECMA 15.1.<p>

 This method must be called to initialize a scope before scripts
 can be evaluated in that scope.<p>

 This method does not affect the Context it is called upon.<p>

 This form of the method also allows for creating "sealed" standard
 objects. An object that is sealed cannot have properties added, changed,
 or removed. This is useful to create a "superglobal" that can be shared
 among several top-level objects. Note that sealing is not allowed in
 the current ECMA/ISO language specification, but is likely for
 the next version.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to initialize, or null, in which case a new
        object will be created to serve as the scope<DD><CODE>sealed</CODE> - whether or not to create sealed standard objects that
        cannot be modified.
<DT><B>Returns:</B><DD>the initialized scope. The method returns the value of the scope
         argument if it is not null or newly allocated scope object.<DT><B>Since:</B></DT>
  <DD>1.4R3</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getUndefinedValue()"><!-- --></A><H3>
getUndefinedValue</H3>
<PRE>
public static java.lang.Object <B>getUndefinedValue</B>()</PRE>
<DL>
<DD>Get the singleton object that represents the JavaScript Undefined value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="evaluateString(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.String, int, java.lang.Object)"><!-- --></A><H3>
evaluateString</H3>
<PRE>
public final java.lang.Object <B>evaluateString</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                             java.lang.String&nbsp;source,
                                             java.lang.String&nbsp;sourceName,
                                             int&nbsp;lineno,
                                             java.lang.Object&nbsp;securityDomain)</PRE>
<DL>
<DD>Evaluate a JavaScript source string.

 The provided source name and line number are used for error messages
 and for producing debug information.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to execute in<DD><CODE>source</CODE> - the JavaScript source<DD><CODE>sourceName</CODE> - a string describing the source, such as a filename<DD><CODE>lineno</CODE> - the starting line number<DD><CODE>securityDomain</CODE> - an arbitrary object that specifies security
        information about the origin or owner of the script. For
        implementations that don't care about security, this value
        may be null.
<DT><B>Returns:</B><DD>the result of evaluating the string<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/SecurityController.html" title="class in org.mozilla.javascript"><CODE>SecurityController</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="evaluateReader(org.mozilla.javascript.Scriptable, java.io.Reader, java.lang.String, int, java.lang.Object)"><!-- --></A><H3>
evaluateReader</H3>
<PRE>
public final java.lang.Object <B>evaluateReader</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                             java.io.Reader&nbsp;in,
                                             java.lang.String&nbsp;sourceName,
                                             int&nbsp;lineno,
                                             java.lang.Object&nbsp;securityDomain)
                                      throws java.io.IOException</PRE>
<DL>
<DD>Evaluate a reader as JavaScript source.

 All characters of the reader are consumed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to execute in<DD><CODE>in</CODE> - the Reader to get JavaScript source from<DD><CODE>sourceName</CODE> - a string describing the source, such as a filename<DD><CODE>lineno</CODE> - the starting line number<DD><CODE>securityDomain</CODE> - an arbitrary object that specifies security
        information about the origin or owner of the script. For
        implementations that don't care about security, this value
        may be null.
<DT><B>Returns:</B><DD>the result of evaluating the source
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - if an IOException was generated by the Reader</DL>
</DD>
</DL>
<HR>

<A NAME="stringIsCompilableUnit(java.lang.String)"><!-- --></A><H3>
stringIsCompilableUnit</H3>
<PRE>
public final boolean <B>stringIsCompilableUnit</B>(java.lang.String&nbsp;source)</PRE>
<DL>
<DD>Check whether a string is ready to be compiled.
 <p>
 stringIsCompilableUnit is intended to support interactive compilation of
 javascript.  If compiling the string would result in an error
 that might be fixed by appending more source, this method
 returns false.  In every other case, it returns true.
 <p>
 Interactive shells may accumulate source lines, using this
 method after each new line is appended to check whether the
 statement being entered is complete.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source buffer to check
<DT><B>Returns:</B><DD>whether the source is ready for compilation<DT><B>Since:</B></DT>
  <DD>1.4 Release 2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="compileReader(org.mozilla.javascript.Scriptable, java.io.Reader, java.lang.String, int, java.lang.Object)"><!-- --></A><H3>
compileReader</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A> <B>compileReader</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                  java.io.Reader&nbsp;in,
                                  java.lang.String&nbsp;sourceName,
                                  int&nbsp;lineno,
                                  java.lang.Object&nbsp;securityDomain)
                           throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#compileReader(java.io.Reader, java.lang.String, int, java.lang.Object)"><CODE>compileReader(Reader in, String sourceName, int lineno,
                     Object securityDomain)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="compileReader(java.io.Reader, java.lang.String, int, java.lang.Object)"><!-- --></A><H3>
compileReader</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A> <B>compileReader</B>(java.io.Reader&nbsp;in,
                                  java.lang.String&nbsp;sourceName,
                                  int&nbsp;lineno,
                                  java.lang.Object&nbsp;securityDomain)
                           throws java.io.IOException</PRE>
<DL>
<DD>Compiles the source in the given reader.
 <p>
 Returns a script that may later be executed.
 Will consume all the source in the reader.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in</CODE> - the input reader<DD><CODE>sourceName</CODE> - a string describing the source, such as a filename<DD><CODE>lineno</CODE> - the starting line number for reporting errors<DD><CODE>securityDomain</CODE> - an arbitrary object that specifies security
        information about the origin or owner of the script. For
        implementations that don't care about security, this value
        may be null.
<DT><B>Returns:</B><DD>a script that may later be executed
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - if an IOException was generated by the Reader<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript"><CODE>Script</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="compileString(java.lang.String, java.lang.String, int, java.lang.Object)"><!-- --></A><H3>
compileString</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A> <B>compileString</B>(java.lang.String&nbsp;source,
                                  java.lang.String&nbsp;sourceName,
                                  int&nbsp;lineno,
                                  java.lang.Object&nbsp;securityDomain)</PRE>
<DL>
<DD>Compiles the source in the given string.
 <p>
 Returns a script that may later be executed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source string<DD><CODE>sourceName</CODE> - a string describing the source, such as a filename<DD><CODE>lineno</CODE> - the starting line number for reporting errors<DD><CODE>securityDomain</CODE> - an arbitrary object that specifies security
        information about the origin or owner of the script. For
        implementations that don't care about security, this value
        may be null.
<DT><B>Returns:</B><DD>a script that may later be executed<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript"><CODE>Script</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="compileFunction(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.String, int, java.lang.Object)"><!-- --></A><H3>
compileFunction</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Function.html" title="interface in org.mozilla.javascript">Function</A> <B>compileFunction</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                      java.lang.String&nbsp;source,
                                      java.lang.String&nbsp;sourceName,
                                      int&nbsp;lineno,
                                      java.lang.Object&nbsp;securityDomain)</PRE>
<DL>
<DD>Compile a JavaScript function.
 <p>
 The function source must be a function definition as defined by
 ECMA (e.g., "function f(a) { return a; }").
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to compile relative to<DD><CODE>source</CODE> - the function definition source<DD><CODE>sourceName</CODE> - a string describing the source, such as a filename<DD><CODE>lineno</CODE> - the starting line number<DD><CODE>securityDomain</CODE> - an arbitrary object that specifies security
        information about the origin or owner of the script. For
        implementations that don't care about security, this value
        may be null.
<DT><B>Returns:</B><DD>a Function that may later be called<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Function.html" title="interface in org.mozilla.javascript"><CODE>Function</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="decompileScript(org.mozilla.javascript.Script, int)"><!-- --></A><H3>
decompileScript</H3>
<PRE>
public final java.lang.String <B>decompileScript</B>(<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A>&nbsp;script,
                                              int&nbsp;indent)</PRE>
<DL>
<DD>Decompile the script.
 <p>
 The canonical source of the script is returned.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>script</CODE> - the script to decompile<DD><CODE>indent</CODE> - the number of spaces to indent the result
<DT><B>Returns:</B><DD>a string representing the script source</DL>
</DD>
</DL>
<HR>

<A NAME="decompileFunction(org.mozilla.javascript.Function, int)"><!-- --></A><H3>
decompileFunction</H3>
<PRE>
public final java.lang.String <B>decompileFunction</B>(<A HREF="../../../org/mozilla/javascript/Function.html" title="interface in org.mozilla.javascript">Function</A>&nbsp;fun,
                                                int&nbsp;indent)</PRE>
<DL>
<DD>Decompile a JavaScript Function.
 <p>
 Decompiles a previously compiled JavaScript function object to
 canonical source.
 <p>
 Returns function body of '[native code]' if no decompilation
 information is available.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fun</CODE> - the JavaScript function to decompile<DD><CODE>indent</CODE> - the number of spaces to indent the result
<DT><B>Returns:</B><DD>a string representing the function source</DL>
</DD>
</DL>
<HR>

<A NAME="decompileFunctionBody(org.mozilla.javascript.Function, int)"><!-- --></A><H3>
decompileFunctionBody</H3>
<PRE>
public final java.lang.String <B>decompileFunctionBody</B>(<A HREF="../../../org/mozilla/javascript/Function.html" title="interface in org.mozilla.javascript">Function</A>&nbsp;fun,
                                                    int&nbsp;indent)</PRE>
<DL>
<DD>Decompile the body of a JavaScript Function.
 <p>
 Decompiles the body a previously compiled JavaScript Function
 object to canonical source, omitting the function header and
 trailing brace.

 Returns '[native code]' if no decompilation information is available.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fun</CODE> - the JavaScript function to decompile<DD><CODE>indent</CODE> - the number of spaces to indent the result
<DT><B>Returns:</B><DD>a string representing the function body source.</DL>
</DD>
</DL>
<HR>

<A NAME="newObject(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
newObject</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>newObject</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</PRE>
<DL>
<DD>Create a new JavaScript object.

 Equivalent to evaluating "new Object()".
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to search for the constructor and to evaluate
              against
<DT><B>Returns:</B><DD>the new object</DL>
</DD>
</DL>
<HR>

<A NAME="newObject(org.mozilla.javascript.Scriptable, java.lang.String)"><!-- --></A><H3>
newObject</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>newObject</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                  java.lang.String&nbsp;constructorName)</PRE>
<DL>
<DD>Create a new JavaScript object by executing the named constructor.

 The call <code>newObject(scope, "Foo")</code> is equivalent to
 evaluating "new Foo()".
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to search for the constructor and to evaluate against<DD><CODE>constructorName</CODE> - the name of the constructor to call
<DT><B>Returns:</B><DD>the new object</DL>
</DD>
</DL>
<HR>

<A NAME="newObject(org.mozilla.javascript.Scriptable, java.lang.String, java.lang.Object[])"><!-- --></A><H3>
newObject</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>newObject</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                  java.lang.String&nbsp;constructorName,
                                  java.lang.Object[]&nbsp;args)</PRE>
<DL>
<DD>Creates a new JavaScript object by executing the named constructor.

 Searches <code>scope</code> for the named constructor, calls it with
 the given arguments, and returns the result.<p>

 The code
 <pre>
 Object[] args = { "a", "b" };
 newObject(scope, "Foo", args)</pre>
 is equivalent to evaluating "new Foo('a', 'b')", assuming that the Foo
 constructor has been defined in <code>scope</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - The scope to search for the constructor and to evaluate
              against<DD><CODE>constructorName</CODE> - the name of the constructor to call<DD><CODE>args</CODE> - the array of arguments for the constructor
<DT><B>Returns:</B><DD>the new object</DL>
</DD>
</DL>
<HR>

<A NAME="newArray(org.mozilla.javascript.Scriptable, int)"><!-- --></A><H3>
newArray</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>newArray</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                 int&nbsp;length)</PRE>
<DL>
<DD>Create an array with a specified initial length.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to create the object in<DD><CODE>length</CODE> - the initial length (JavaScript arrays may have
               additional properties added dynamically).
<DT><B>Returns:</B><DD>the new array object</DL>
</DD>
</DL>
<HR>

<A NAME="newArray(org.mozilla.javascript.Scriptable, java.lang.Object[])"><!-- --></A><H3>
newArray</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>newArray</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                 java.lang.Object[]&nbsp;elements)</PRE>
<DL>
<DD>Create an array with a set of initial elements.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to create the object in.<DD><CODE>elements</CODE> - the initial elements. Each object in this array
                 must be an acceptable JavaScript type and type
                 of array should be exactly Object[], not
                 SomeObjectSubclass[].
<DT><B>Returns:</B><DD>the new array object.</DL>
</DD>
</DL>
<HR>

<A NAME="getElements(org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
getElements</H3>
<PRE>
public final java.lang.Object[] <B>getElements</B>(<A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;object)</PRE>
<DL>
<DD>Get the elements of a JavaScript array.
 <p>
 If the object defines a length property convertible to double number,
 then the number is converted Uint32 value as defined in Ecma 9.6
 and Java array of that size is allocated.
 The array is initialized with the values obtained by
 calling get() on object for each value of i in [0,length-1]. If
 there is not a defined value for a property the Undefined value
 is used to initialize the corresponding element in the array. The
 Java array is then returned.
 If the object doesn't define a length property or it is not a number,
 empty array is returned.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>object</CODE> - the JavaScript array or array-like object
<DT><B>Returns:</B><DD>a Java array of objects<DT><B>Since:</B></DT>
  <DD>1.4 release 2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="toBoolean(java.lang.Object)"><!-- --></A><H3>
toBoolean</H3>
<PRE>
public static boolean <B>toBoolean</B>(java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Convert the value to a JavaScript boolean value.
 <p>
 See ECMA 9.2.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - a JavaScript value
<DT><B>Returns:</B><DD>the corresponding boolean value converted using
         the ECMA rules</DL>
</DD>
</DL>
<HR>

<A NAME="toNumber(java.lang.Object)"><!-- --></A><H3>
toNumber</H3>
<PRE>
public static double <B>toNumber</B>(java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Convert the value to a JavaScript Number value.
 <p>
 Returns a Java double for the JavaScript Number.
 <p>
 See ECMA 9.3.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - a JavaScript value
<DT><B>Returns:</B><DD>the corresponding double value converted using
         the ECMA rules</DL>
</DD>
</DL>
<HR>

<A NAME="toString(java.lang.Object)"><!-- --></A><H3>
toString</H3>
<PRE>
public static java.lang.String <B>toString</B>(java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Convert the value to a JavaScript String value.
 <p>
 See ECMA 9.8.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - a JavaScript value
<DT><B>Returns:</B><DD>the corresponding String value converted using
         the ECMA rules</DL>
</DD>
</DL>
<HR>

<A NAME="toObject(java.lang.Object, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
toObject</H3>
<PRE>
public static <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>toObject</B>(java.lang.Object&nbsp;value,
                                  <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</PRE>
<DL>
<DD>Convert the value to an JavaScript object value.
 <p>
 Note that a scope must be provided to look up the constructors
 for Number, Boolean, and String.
 <p>
 See ECMA 9.9.
 <p>
 Additionally, arbitrary Java objects and classes will be
 wrapped in a Scriptable object with its Java fields and methods
 reflected as JavaScript properties of the object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - any Java object<DD><CODE>scope</CODE> - global scope containing constructors for Number,
              Boolean, and String
<DT><B>Returns:</B><DD>new JavaScript object</DL>
</DD>
</DL>
<HR>

<A NAME="toObject(java.lang.Object, org.mozilla.javascript.Scriptable, java.lang.Class)"><!-- --></A><H3>
toObject</H3>
<PRE>
public static <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A> <B>toObject</B>(java.lang.Object&nbsp;value,
                                  <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope,
                                  java.lang.Class&nbsp;staticType)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#toObject(java.lang.Object, org.mozilla.javascript.Scriptable)"><CODE>toObject(Object, Scriptable)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="javaToJS(java.lang.Object, org.mozilla.javascript.Scriptable)"><!-- --></A><H3>
javaToJS</H3>
<PRE>
public static java.lang.Object <B>javaToJS</B>(java.lang.Object&nbsp;value,
                                        <A HREF="../../../org/mozilla/javascript/Scriptable.html" title="interface in org.mozilla.javascript">Scriptable</A>&nbsp;scope)</PRE>
<DL>
<DD>Convenient method to convert java value to its closest representation
 in JavaScript.
 <p>
 If value is an instance of String, Number, Boolean, Function or
 Scriptable, it is returned as it and will be treated as the corresponding
 JavaScript type of string, number, boolean, function and object.
 <p>
 Note that for Number instances during any arithmetic operation in
 JavaScript the engine will always use the result of
 <tt>Number.doubleValue()</tt> resulting in a precision loss if
 the number can not fit into double.
 <p>
 If value is an instance of Character, it will be converted to string of
 length 1 and its JavaScript type will be string.
 <p>
 The rest of values will be wrapped as LiveConnect objects
 by calling <A HREF="../../../org/mozilla/javascript/WrapFactory.html#wrap(org.mozilla.javascript.Context, org.mozilla.javascript.Scriptable, java.lang.Object, java.lang.Class)"><CODE>WrapFactory.wrap(Context cx, Scriptable scope,
 Object obj, Class staticType)</CODE></A> as in:
 <pre>
    Context cx = Context.getCurrentContext();
    return cx.getWrapFactory().wrap(cx, scope, value, null);
 </pre>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - any Java object<DD><CODE>scope</CODE> - top scope object
<DT><B>Returns:</B><DD>value suitable to pass to any API that takes JavaScript values.</DL>
</DD>
</DL>
<HR>

<A NAME="jsToJava(java.lang.Object, java.lang.Class)"><!-- --></A><H3>
jsToJava</H3>
<PRE>
public static java.lang.Object <B>jsToJava</B>(java.lang.Object&nbsp;value,
                                        java.lang.Class&nbsp;desiredType)
                                 throws <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></PRE>
<DL>
<DD>Convert a JavaScript value into the desired type.
 Uses the semantics defined with LiveConnect3 and throws an
 Illegal argument exception if the conversion cannot be performed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the JavaScript value to convert<DD><CODE>desiredType</CODE> - the Java type to convert to. Primitive Java
        types are represented using the TYPE fields in the corresponding
        wrapper class in java.lang.
<DT><B>Returns:</B><DD>the converted value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></CODE> - if the conversion cannot be performed</DL>
</DD>
</DL>
<HR>

<A NAME="toType(java.lang.Object, java.lang.Class)"><!-- --></A><H3>
toType</H3>
<PRE>
public static java.lang.Object <B>toType</B>(java.lang.Object&nbsp;value,
                                      java.lang.Class&nbsp;desiredType)
                               throws java.lang.IllegalArgumentException</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the conversion cannot be performed.
         Note that <A HREF="../../../org/mozilla/javascript/Context.html#jsToJava(java.lang.Object, java.lang.Class)"><CODE>jsToJava(Object, Class)</CODE></A> throws
         <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript"><CODE>EvaluatorException</CODE></A> instead.<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#jsToJava(java.lang.Object, java.lang.Class)"><CODE>jsToJava(Object, Class)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="throwAsScriptRuntimeEx(java.lang.Throwable)"><!-- --></A><H3>
throwAsScriptRuntimeEx</H3>
<PRE>
public static java.lang.RuntimeException <B>throwAsScriptRuntimeEx</B>(java.lang.Throwable&nbsp;e)</PRE>
<DL>
<DD>Rethrow the exception wrapping it as the script runtime exception.
 Unless the exception is instance of <A HREF="../../../org/mozilla/javascript/EcmaError.html" title="class in org.mozilla.javascript"><CODE>EcmaError</CODE></A> or
 <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript"><CODE>EvaluatorException</CODE></A> it will be wrapped as
 <A HREF="../../../org/mozilla/javascript/WrappedException.html" title="class in org.mozilla.javascript"><CODE>WrappedException</CODE></A>, a subclass of <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript"><CODE>EvaluatorException</CODE></A>.
 The resulting exception object always contains
 source name and line number of script that triggered exception.
 <p>
 This method always throws an exception, its return value is provided
 only for convenience to allow a usage like:
 <pre>
 throw Context.throwAsScriptRuntimeEx(ex);
 </pre>
 to indicate that code after the method is unreachable.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A></CODE>
<DD><CODE><A HREF="../../../org/mozilla/javascript/EcmaError.html" title="class in org.mozilla.javascript">EcmaError</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isGeneratingDebug()"><!-- --></A><H3>
isGeneratingDebug</H3>
<PRE>
public final boolean <B>isGeneratingDebug</B>()</PRE>
<DL>
<DD>Tell whether debug information is being generated.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
  <DD>1.3</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="setGeneratingDebug(boolean)"><!-- --></A><H3>
setGeneratingDebug</H3>
<PRE>
public final void <B>setGeneratingDebug</B>(boolean&nbsp;generatingDebug)</PRE>
<DL>
<DD>Specify whether or not debug information should be generated.
 <p>
 Setting the generation of debug information on will set the
 optimization level to zero.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
  <DD>1.3</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="isGeneratingSource()"><!-- --></A><H3>
isGeneratingSource</H3>
<PRE>
public final boolean <B>isGeneratingSource</B>()</PRE>
<DL>
<DD>Tell whether source information is being generated.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
  <DD>1.3</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="setGeneratingSource(boolean)"><!-- --></A><H3>
setGeneratingSource</H3>
<PRE>
public final void <B>setGeneratingSource</B>(boolean&nbsp;generatingSource)</PRE>
<DL>
<DD>Specify whether or not source information should be generated.
 <p>
 Without source information, evaluating the "toString" method
 on JavaScript functions produces only "[native code]" for
 the body of the function.
 Note that code generated without source is not fully ECMA
 conformant.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
  <DD>1.3</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getOptimizationLevel()"><!-- --></A><H3>
getOptimizationLevel</H3>
<PRE>
public final int <B>getOptimizationLevel</B>()</PRE>
<DL>
<DD>Get the current optimization level.
 <p>
 The optimization level is expressed as an integer between -1 and
 9.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
  <DD>1.3</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="setOptimizationLevel(int)"><!-- --></A><H3>
setOptimizationLevel</H3>
<PRE>
public final void <B>setOptimizationLevel</B>(int&nbsp;optimizationLevel)</PRE>
<DL>
<DD>Set the current optimization level.
 <p>
 The optimization level is expected to be an integer between -1 and
 9. Any negative values will be interpreted as -1, and any values
 greater than 9 will be interpreted as 9.
 An optimization level of -1 indicates that interpretive mode will
 always be used. Levels 0 through 9 indicate that class files may
 be generated. Higher optimization levels trade off compile time
 performance for runtime performance.
 The optimizer level can't be set greater than -1 if the optimizer
 package doesn't exist at run time.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>optimizationLevel</CODE> - an integer indicating the level of
        optimization to perform<DT><B>Since:</B></DT>
  <DD>1.3</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="isValidOptimizationLevel(int)"><!-- --></A><H3>
isValidOptimizationLevel</H3>
<PRE>
public static boolean <B>isValidOptimizationLevel</B>(int&nbsp;optimizationLevel)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="checkOptimizationLevel(int)"><!-- --></A><H3>
checkOptimizationLevel</H3>
<PRE>
public static void <B>checkOptimizationLevel</B>(int&nbsp;optimizationLevel)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getMaximumInterpreterStackDepth()"><!-- --></A><H3>
getMaximumInterpreterStackDepth</H3>
<PRE>
public final int <B>getMaximumInterpreterStackDepth</B>()</PRE>
<DL>
<DD>Returns the maximum stack depth (in terms of number of call frames) 
 allowed in a single invocation of interpreter. If the set depth would be
 exceeded, the interpreter will throw an EvaluatorException in the script.
 Defaults to Integer.MAX_VALUE. The setting only has effect for 
 interpreted functions (those compiled with optimization level set to -1).
 As the interpreter doesn't use the Java stack but rather manages its own
 stack in the heap memory, a runaway recursion in interpreted code would 
 eventually consume all available memory and cause OutOfMemoryError 
 instead of a StackOverflowError limited to only a single thread. This
 setting helps prevent such situations.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>The current maximum interpreter stack depth.</DL>
</DD>
</DL>
<HR>

<A NAME="setMaximumInterpreterStackDepth(int)"><!-- --></A><H3>
setMaximumInterpreterStackDepth</H3>
<PRE>
public final void <B>setMaximumInterpreterStackDepth</B>(int&nbsp;max)</PRE>
<DL>
<DD>Sets the maximum stack depth (in terms of number of call frames) 
 allowed in a single invocation of interpreter. If the set depth would be
 exceeded, the interpreter will throw an EvaluatorException in the script.
 Defaults to Integer.MAX_VALUE. The setting only has effect for 
 interpreted functions (those compiled with optimization level set to -1).
 As the interpreter doesn't use the Java stack but rather manages its own
 stack in the heap memory, a runaway recursion in interpreted code would 
 eventually consume all available memory and cause OutOfMemoryError 
 instead of a StackOverflowError limited to only a single thread. This
 setting helps prevent such situations.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>max</CODE> - the new maximum interpreter stack depth
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if this context's optimization level is not
 -1
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the new depth is not at least 1</DL>
</DD>
</DL>
<HR>

<A NAME="setSecurityController(org.mozilla.javascript.SecurityController)"><!-- --></A><H3>
setSecurityController</H3>
<PRE>
public final void <B>setSecurityController</B>(<A HREF="../../../org/mozilla/javascript/SecurityController.html" title="class in org.mozilla.javascript">SecurityController</A>&nbsp;controller)</PRE>
<DL>
<DD>Set the security controller for this context.
 <p> SecurityController may only be set if it is currently null
 and <A HREF="../../../org/mozilla/javascript/SecurityController.html#hasGlobal()"><CODE>SecurityController.hasGlobal()</CODE></A> is <tt>false</tt>.
 Otherwise a SecurityException is thrown.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>controller</CODE> - a SecurityController object
<DT><B>Throws:</B>
<DD><CODE>java.lang.SecurityException</CODE> - if there is already a SecurityController
         object for this Context or globally installed.<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/SecurityController.html#initGlobal(org.mozilla.javascript.SecurityController)"><CODE>SecurityController.initGlobal(SecurityController controller)</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/SecurityController.html#hasGlobal()"><CODE>SecurityController.hasGlobal()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setClassShutter(org.mozilla.javascript.ClassShutter)"><!-- --></A><H3>
setClassShutter</H3>
<PRE>
public final void <B>setClassShutter</B>(<A HREF="../../../org/mozilla/javascript/ClassShutter.html" title="interface in org.mozilla.javascript">ClassShutter</A>&nbsp;shutter)</PRE>
<DL>
<DD>Set the LiveConnect access filter for this context.
 <p> <A HREF="../../../org/mozilla/javascript/ClassShutter.html" title="interface in org.mozilla.javascript"><CODE>ClassShutter</CODE></A> may only be set if it is currently null.
 Otherwise a SecurityException is thrown.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>shutter</CODE> - a ClassShutter object
<DT><B>Throws:</B>
<DD><CODE>java.lang.SecurityException</CODE> - if there is already a ClassShutter
         object for this Context</DL>
</DD>
</DL>
<HR>

<A NAME="getThreadLocal(java.lang.Object)"><!-- --></A><H3>
getThreadLocal</H3>
<PRE>
public final java.lang.Object <B>getThreadLocal</B>(java.lang.Object&nbsp;key)</PRE>
<DL>
<DD>Get a value corresponding to a key.
 <p>
 Since the Context is associated with a thread it can be
 used to maintain values that can be later retrieved using
 the current thread.
 <p>
 Note that the values are maintained with the Context, so
 if the Context is disassociated from the thread the values
 cannot be retrieved. Also, if private data is to be maintained
 in this manner the key should be a java.lang.Object
 whose reference is not divulged to untrusted code.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key used to lookup the value
<DT><B>Returns:</B><DD>a value previously stored using putThreadLocal.</DL>
</DD>
</DL>
<HR>

<A NAME="putThreadLocal(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
putThreadLocal</H3>
<PRE>
public final void <B>putThreadLocal</B>(java.lang.Object&nbsp;key,
                                 java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Put a value that can later be retrieved using a given key.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key used to index the value<DD><CODE>value</CODE> - the value to save</DL>
</DD>
</DL>
<HR>

<A NAME="removeThreadLocal(java.lang.Object)"><!-- --></A><H3>
removeThreadLocal</H3>
<PRE>
public final void <B>removeThreadLocal</B>(java.lang.Object&nbsp;key)</PRE>
<DL>
<DD>Remove values from thread-local storage.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key for the entry to remove.<DT><B>Since:</B></DT>
  <DD>1.5 release 2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="hasCompileFunctionsWithDynamicScope()"><!-- --></A><H3>
hasCompileFunctionsWithDynamicScope</H3>
<PRE>
public final boolean <B>hasCompileFunctionsWithDynamicScope</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_DYNAMIC_SCOPE"><CODE>FEATURE_DYNAMIC_SCOPE</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setCompileFunctionsWithDynamicScope(boolean)"><!-- --></A><H3>
setCompileFunctionsWithDynamicScope</H3>
<PRE>
public final void <B>setCompileFunctionsWithDynamicScope</B>(boolean&nbsp;flag)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_DYNAMIC_SCOPE"><CODE>FEATURE_DYNAMIC_SCOPE</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setCachingEnabled(boolean)"><!-- --></A><H3>
setCachingEnabled</H3>
<PRE>
public static void <B>setCachingEnabled</B>(boolean&nbsp;cachingEnabled)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/ClassCache.html#get(org.mozilla.javascript.Scriptable)"><CODE>ClassCache.get(Scriptable)</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/ClassCache.html#setCachingEnabled(boolean)"><CODE>ClassCache.setCachingEnabled(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setWrapFactory(org.mozilla.javascript.WrapFactory)"><!-- --></A><H3>
setWrapFactory</H3>
<PRE>
public final void <B>setWrapFactory</B>(<A HREF="../../../org/mozilla/javascript/WrapFactory.html" title="class in org.mozilla.javascript">WrapFactory</A>&nbsp;wrapFactory)</PRE>
<DL>
<DD>Set a WrapFactory for this Context.
 <p>
 The WrapFactory allows custom object wrapping behavior for
 Java object manipulated with JavaScript.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
  <DD>1.5 Release 4</DD>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/WrapFactory.html" title="class in org.mozilla.javascript"><CODE>WrapFactory</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getWrapFactory()"><!-- --></A><H3>
getWrapFactory</H3>
<PRE>
public final <A HREF="../../../org/mozilla/javascript/WrapFactory.html" title="class in org.mozilla.javascript">WrapFactory</A> <B>getWrapFactory</B>()</PRE>
<DL>
<DD>Return the current WrapFactory, or null if none is defined.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
  <DD>1.5 Release 4</DD>
<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/WrapFactory.html" title="class in org.mozilla.javascript"><CODE>WrapFactory</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getDebugger()"><!-- --></A><H3>
getDebugger</H3>
<PRE>
public final org.mozilla.javascript.debug.Debugger <B>getDebugger</B>()</PRE>
<DL>
<DD>Return the current debugger.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the debugger, or null if none is attached.</DL>
</DD>
</DL>
<HR>

<A NAME="getDebuggerContextData()"><!-- --></A><H3>
getDebuggerContextData</H3>
<PRE>
public final java.lang.Object <B>getDebuggerContextData</B>()</PRE>
<DL>
<DD>Return the debugger context data associated with current context.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the debugger data, or null if debugger is not attached</DL>
</DD>
</DL>
<HR>

<A NAME="setDebugger(org.mozilla.javascript.debug.Debugger, java.lang.Object)"><!-- --></A><H3>
setDebugger</H3>
<PRE>
public final void <B>setDebugger</B>(org.mozilla.javascript.debug.Debugger&nbsp;debugger,
                              java.lang.Object&nbsp;contextData)</PRE>
<DL>
<DD>Set the associated debugger.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>debugger</CODE> - the debugger to be used on callbacks from
 the engine.<DD><CODE>contextData</CODE> - arbitrary object that debugger can use to store
        per Context data.</DL>
</DD>
</DL>
<HR>

<A NAME="getDebuggableView(org.mozilla.javascript.Script)"><!-- --></A><H3>
getDebuggableView</H3>
<PRE>
public static <A HREF="../../../org/mozilla/javascript/debug/DebuggableScript.html" title="interface in org.mozilla.javascript.debug">DebuggableScript</A> <B>getDebuggableView</B>(<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript">Script</A>&nbsp;script)</PRE>
<DL>
<DD>Return DebuggableScript instance if any associated with the script.
 If callable supports DebuggableScript implementation, the method
 returns it. Otherwise null is returned.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="hasFeature(int)"><!-- --></A><H3>
hasFeature</H3>
<PRE>
public boolean <B>hasFeature</B>(int&nbsp;featureIndex)</PRE>
<DL>
<DD>Controls certain aspects of script semantics.
 Should be overwritten to alter default behavior.
 <p>
 The default implementation calls
 <A HREF="../../../org/mozilla/javascript/ContextFactory.html#hasFeature(org.mozilla.javascript.Context, int)"><CODE>ContextFactory.hasFeature(Context cx, int featureIndex)</CODE></A>
 that allows to customize Context behavior without introducing
 Context subclasses.  <A HREF="../../../org/mozilla/javascript/ContextFactory.html" title="class in org.mozilla.javascript"><CODE>ContextFactory</CODE></A> documentation gives
 an example of hasFeature implementation.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>featureIndex</CODE> - feature index to check
<DT><B>Returns:</B><DD>true if the <code>featureIndex</code> feature is turned on<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_NON_ECMA_GET_YEAR"><CODE>FEATURE_NON_ECMA_GET_YEAR</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME"><CODE>FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER"><CODE>FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_TO_STRING_AS_SOURCE"><CODE>FEATURE_TO_STRING_AS_SOURCE</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_PARENT_PROTO_PROPRTIES"><CODE>FEATURE_PARENT_PROTO_PROPRTIES</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_E4X"><CODE>FEATURE_E4X</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_DYNAMIC_SCOPE"><CODE>FEATURE_DYNAMIC_SCOPE</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_STRICT_VARS"><CODE>FEATURE_STRICT_VARS</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_STRICT_EVAL"><CODE>FEATURE_STRICT_EVAL</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_LOCATION_INFORMATION_IN_ERROR"><CODE>FEATURE_LOCATION_INFORMATION_IN_ERROR</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_STRICT_MODE"><CODE>FEATURE_STRICT_MODE</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_WARNING_AS_ERROR"><CODE>FEATURE_WARNING_AS_ERROR</CODE></A>, 
<A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_ENHANCED_JAVA_ACCESS"><CODE>FEATURE_ENHANCED_JAVA_ACCESS</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getE4xImplementationFactory()"><!-- --></A><H3>
getE4xImplementationFactory</H3>
<PRE>
public org.mozilla.javascript.xml.XMLLib.Factory <B>getE4xImplementationFactory</B>()</PRE>
<DL>
<DD>Returns an object which specifies an E4X implementation to use within
                this <code>Context</code>.  Note
                that the XMLLib.Factory interface should be considered experimental.

                The default implementation uses the implementation provided by this
                <code>Context</code>'s <A HREF="../../../org/mozilla/javascript/ContextFactory.html" title="class in org.mozilla.javascript"><CODE>ContextFactory</CODE></A>.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>An XMLLib.Factory.  Should not return <code>null</code> if
                        <A HREF="../../../org/mozilla/javascript/Context.html#FEATURE_E4X"><CODE>FEATURE_E4X</CODE></A> is enabled.  See <A HREF="../../../org/mozilla/javascript/Context.html#hasFeature(int)"><CODE>hasFeature(int)</CODE></A>.</DL>
</DD>
</DL>
<HR>

<A NAME="getInstructionObserverThreshold()"><!-- --></A><H3>
getInstructionObserverThreshold</H3>
<PRE>
public final int <B>getInstructionObserverThreshold</B>()</PRE>
<DL>
<DD>Get threshold of executed instructions counter that triggers call to
 <code>observeInstructionCount()</code>.
 When the threshold is zero, instruction counting is disabled,
 otherwise each time the run-time executes at least the threshold value
 of script instructions, <code>observeInstructionCount()</code> will
 be called.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setInstructionObserverThreshold(int)"><!-- --></A><H3>
setInstructionObserverThreshold</H3>
<PRE>
public final void <B>setInstructionObserverThreshold</B>(int&nbsp;threshold)</PRE>
<DL>
<DD>Set threshold of executed instructions counter that triggers call to
 <code>observeInstructionCount()</code>.
 When the threshold is zero, instruction counting is disabled,
 otherwise each time the run-time executes at least the threshold value
 of script instructions, <code>observeInstructionCount()</code> will
 be called.<p/>
 Note that the meaning of "instruction" is not guaranteed to be
 consistent between compiled and interpretive modes: executing a given
 script or function in the different modes will result in different
 instruction counts against the threshold.
 <A HREF="../../../org/mozilla/javascript/Context.html#setGenerateObserverCount(boolean)"><CODE>setGenerateObserverCount(boolean)</CODE></A> is called with true if
 <code>threshold</code> is greater than zero, false otherwise.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>threshold</CODE> - The instruction threshold</DL>
</DD>
</DL>
<HR>

<A NAME="setGenerateObserverCount(boolean)"><!-- --></A><H3>
setGenerateObserverCount</H3>
<PRE>
public void <B>setGenerateObserverCount</B>(boolean&nbsp;generateObserverCount)</PRE>
<DL>
<DD>Turn on or off generation of code with callbacks to
 track the count of executed instructions.
 Currently only affects JVM byte code generation: this slows down the
 generated code, but code generated without the callbacks will not
 be counted toward instruction thresholds. Rhino's interpretive
 mode does instruction counting without inserting callbacks, so
 there is no requirement to compile code differently.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>generateObserverCount</CODE> - if true, generated code will contain
 calls to accumulate an estimate of the instructions executed.</DL>
</DD>
</DL>
<HR>

<A NAME="observeInstructionCount(int)"><!-- --></A><H3>
observeInstructionCount</H3>
<PRE>
protected void <B>observeInstructionCount</B>(int&nbsp;instructionCount)</PRE>
<DL>
<DD>Allow application to monitor counter of executed script instructions
 in Context subclasses.
 Run-time calls this when instruction counting is enabled and the counter
 reaches limit set by <code>setInstructionObserverThreshold()</code>.
 The method is useful to observe long running scripts and if necessary
 to terminate them.
 <p>
 The instruction counting support is available only for interpreted
 scripts generated when the optimization level is set to -1.
 <p>
 The default implementation calls
 <A HREF="../../../org/mozilla/javascript/ContextFactory.html#observeInstructionCount(org.mozilla.javascript.Context, int)"><CODE>ContextFactory.observeInstructionCount(Context cx,
                                               int instructionCount)</CODE></A>
 that allows to customize Context behavior without introducing
 Context subclasses.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>instructionCount</CODE> - amount of script instruction executed since
 last call to <code>observeInstructionCount</code>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Error</CODE> - to terminate the script<DT><B>See Also:</B><DD><A HREF="../../../org/mozilla/javascript/Context.html#setOptimizationLevel(int)"><CODE>setOptimizationLevel(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="createClassLoader(java.lang.ClassLoader)"><!-- --></A><H3>
createClassLoader</H3>
<PRE>
public <A HREF="../../../org/mozilla/javascript/GeneratedClassLoader.html" title="interface in org.mozilla.javascript">GeneratedClassLoader</A> <B>createClassLoader</B>(java.lang.ClassLoader&nbsp;parent)</PRE>
<DL>
<DD>Create class loader for generated classes.
 The method calls <A HREF="../../../org/mozilla/javascript/ContextFactory.html#createClassLoader(java.lang.ClassLoader)"><CODE>ContextFactory.createClassLoader(ClassLoader)</CODE></A>
 using the result of <A HREF="../../../org/mozilla/javascript/Context.html#getFactory()"><CODE>getFactory()</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getApplicationClassLoader()"><!-- --></A><H3>
getApplicationClassLoader</H3>
<PRE>
public final java.lang.ClassLoader <B>getApplicationClassLoader</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setApplicationClassLoader(java.lang.ClassLoader)"><!-- --></A><H3>
setApplicationClassLoader</H3>
<PRE>
public final void <B>setApplicationClassLoader</B>(java.lang.ClassLoader&nbsp;loader)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isGeneratingDebugChanged()"><!-- --></A><H3>
isGeneratingDebugChanged</H3>
<PRE>
public final boolean <B>isGeneratingDebugChanged</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addActivationName(java.lang.String)"><!-- --></A><H3>
addActivationName</H3>
<PRE>
public void <B>addActivationName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Add a name to the list of names forcing the creation of real
 activation objects for functions.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the object to add to the list</DL>
</DD>
</DL>
<HR>

<A NAME="isActivationNeeded(java.lang.String)"><!-- --></A><H3>
isActivationNeeded</H3>
<PRE>
public final boolean <B>isActivationNeeded</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Check whether the name is in the list of names of objects
 forcing the creation of activation objects.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the object to test
<DT><B>Returns:</B><DD>true if an function activation object is needed.</DL>
</DD>
</DL>
<HR>

<A NAME="removeActivationName(java.lang.String)"><!-- --></A><H3>
removeActivationName</H3>
<PRE>
public void <B>removeActivationName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Remove a name from the list of names forcing the creation of real
 activation objects for functions.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the object to remove from the list</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/mozilla/javascript/CompilerEnvirons.html" title="class in org.mozilla.javascript"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../org/mozilla/javascript/ContextAction.html" title="interface in org.mozilla.javascript"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?org/mozilla/javascript/Context.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Context.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  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>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
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>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>