亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? context.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is Netscape * Communications Corporation.  Portions created by Netscape are * Copyright (C) 1997-2000 Netscape Communications Corporation. All * Rights Reserved. * * Contributor(s): * * Kemal Bayram * Patrick Beard * Norris Boyd * Igor Bukanov, igor@mir2.org * Brendan Eich * Ethan Hugg * Roger Lawrence * Terry Lucas * Mike McCabe * Milen Nankov * Attila Szegedi, szegedia@freemail.hu * Ian D. Stewart * Andi Vajda * Andrew Wason * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the * provisions of the GPL are applicable instead of those above. * If you wish to allow use of your version of this file only * under the terms of the GPL and not to allow others to use your * version of this file under the NPL, indicate your decision by * deleting the provisions above and replace them with the notice * and other provisions required by the GPL.  If you do not delete * the provisions above, a recipient may use your version of this * file under either the NPL or the GPL. */// API classpackage org.mozilla.javascript;import java.beans.*;import java.io.*;import java.util.Hashtable;import java.util.Locale;import java.lang.reflect.*;import org.mozilla.javascript.debug.*;import org.mozilla.javascript.xml.XMLLib;/** * 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 {@link #call(ContextAction)} * or {@link #enter()} 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. * * @see Scriptable * @author Norris Boyd * @author Brendan Eich */public class Context{    /**     * Language versions.     *     * All integral values are reserved for future version numbers.     */    /**     * The unknown version.     */    public static final int VERSION_UNKNOWN =   -1;    /**     * The default version.     */    public static final int VERSION_DEFAULT =    0;    /**     * JavaScript 1.0     */    public static final int VERSION_1_0 =      100;    /**     * JavaScript 1.1     */    public static final int VERSION_1_1 =      110;    /**     * JavaScript 1.2     */    public static final int VERSION_1_2 =      120;    /**     * JavaScript 1.3     */    public static final int VERSION_1_3 =      130;    /**     * JavaScript 1.4     */    public static final int VERSION_1_4 =      140;    /**     * JavaScript 1.5     */    public static final int VERSION_1_5 =      150;    /**     * JavaScript 1.5     */    public static final int VERSION_1_6 =      160;    /**     * 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 {@link #hasFeature(int)} is always to subtruct     * 1900 as rquired by ECMAScript B.2.4.     */    public static final int FEATURE_NON_ECMA_GET_YEAR = 1;    /**     * 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 {@link #hasFeature(int)} returns false.     */    public static final int FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME = 2;    /**     * 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 {@link #hasFeature(int)} returns false.     */    public static final int FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER = 3;    /**     * 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     * {@link Scriptable#getClassName()}</i>]</tt>.     * <p>     * By default {@link #hasFeature(int)} returns true only if     * the current JS version is set to {@link #VERSION_1_2}.     */    public static final int FEATURE_TO_STRING_AS_SOURCE = 4;    /**     * Control if properties <tt>__proto__</tt> and <tt>__parent__</tt>     * are treated specially.     * If <tt>hasFeature(FEATURE_PARENT_PROTO_PROPRTIES)</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 {@link #hasFeature(int)} returns true.     */    public static final int FEATURE_PARENT_PROTO_PROPRTIES = 5;    /**     * 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 {@link #hasFeature(int)} returns true if     * the current JS version is set to {@link #VERSION_DEFAULT}     * or is greater then {@link #VERSION_1_6}.     * @since 1.6 Release 1     */    public static final int FEATURE_E4X = 6;    /**     * 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 {@link #hasFeature(int)} returns false.     * @since 1.6 Release 1     */    public static final int FEATURE_DYNAMIC_SCOPE = 7;    /**     * 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 {@link #hasFeature(int)} returns false.     * @since 1.6 Release 1     */    public static final int FEATURE_STRICT_VARS = 8;    /**     * 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 {@link #hasFeature(int)} returns false.     * @since 1.6 Release 1     */    public static final int FEATURE_STRICT_EVAL = 9;    public static final String languageVersionProperty = "language version";    public static final String errorReporterProperty   = "error reporter";    /**     * Convinient value to use as zero-length array of objects.     */    public static final Object[] emptyArgs = ScriptRuntime.emptyArgs;    /**     * Create a new Context.     *     * Note that the Context must be associated with a thread before     * it can be used to execute a script.     *     * @see #enter()     * @see #call(ContextAction)     */    public Context()    {        setLanguageVersion(VERSION_DEFAULT);        optimizationLevel = codegenClass != null ? 0 : -1;    }    /**     * Get the current Context.     *     * The current Context is per-thread; this method looks up     * the Context associated with the current thread. <p>     *     * @return the Context associated with the current thread, or     *         null if no context is associated with the current     *         thread.     * @see org.mozilla.javascript.Context#enter()     * @see org.mozilla.javascript.Context#exit()     */    public static Context getCurrentContext()    {        Object helper = VMBridge.instance.getThreadContextHelper();        return VMBridge.instance.getContext(helper);    }    /**     * Get a context associated with the current thread, creating     * one if need be.     *     * The Context stores the execution state of the JavaScript     * engine, so it is required that the context be entered     * before execution may begin. Once a thread has entered     * a Context, then getCurrentContext() may be called to find     * the context that is associated with the current thread.     * <p>     * Calling <code>enter()</code> will     * return either the Context currently associated with the     * thread, or will create a new context and associate it     * with the current thread. Each call to <code>enter()</code>     * must have a matching call to <code>exit()</code>. For example,     * <pre>     *      Context cx = Context.enter();     *      try {     *          ...     *          cx.evaluateString(...);     *      } finally {     *          Context.exit();     *      }     * </pre>     * Instead of using <tt>enter()</tt>, <tt>exit()</tt> pair consider using     * {@link #call(ContextAction)} which guarantees proper     * association of Context instances with the current thread and is faster.     * With this method the above example becomes:     * <pre>     *      Context.call(new ContextAction() {     *          public Object run(Context cx) {     *              ...     *              cx.evaluateString(...);     *              return null;     *          }     *      });     * </pre>     *     * @return a Context associated with the current thread     * @see #getCurrentContext()     * @see #exit()     * @see #call(ContextAction)     */    public static Context enter()    {        return enter(null);    }    /**     * 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.     * @param cx a Context to associate with the thread if possible     * @return a Context associated with the current thread     *     * @see #enter()     * @see #call(ContextAction)     * @see ContextFactory#call(ContextAction)     */    public static Context enter(Context cx)    {        Object helper = VMBridge.instance.getThreadContextHelper();        Context old = VMBridge.instance.getContext(helper);        if (old != null) {            if (cx != null && cx != old && cx.enterCount != 0) {                // The suplied context must be the context for

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区在线播放 | 国产精品污www在线观看| 99综合电影在线视频| 精品免费国产二区三区| 国产宾馆实践打屁股91| 亚洲女爱视频在线| 91精品国产综合久久精品性色| 老鸭窝一区二区久久精品| 18欧美乱大交hd1984| 欧美日韩精品欧美日韩精品一综合| 蜜桃视频一区二区三区| 亚洲欧美激情插| 久久久亚洲高清| 欧美日本免费一区二区三区| 国产精品中文有码| 日韩国产精品久久久久久亚洲| 国产视频在线观看一区二区三区 | 亚洲欧美国产三级| 久久久一区二区三区| 777午夜精品免费视频| 色婷婷久久久久swag精品| 国产成人啪免费观看软件| 亚洲3atv精品一区二区三区| 亚洲国产精品高清| 欧美成人三级电影在线| 91精品午夜视频| 在线观看视频91| 色综合久久88色综合天天6| 国产高清亚洲一区| 国产精品一区二区在线观看网站 | 国产精品第13页| 欧美日韩在线播放三区| 免费成人美女在线观看| 一区二区三区高清不卡| 中文字幕亚洲成人| 中文字幕不卡在线| 亚洲国产成人私人影院tom| 26uuu成人网一区二区三区| 日韩女优电影在线观看| 日韩午夜激情视频| 精品少妇一区二区三区日产乱码 | 中文字幕av在线一区二区三区| 精品人在线二区三区| 久久亚洲一级片| 国产精品视频线看| 一区二区成人在线| 男人的天堂久久精品| 看电视剧不卡顿的网站| 国产老女人精品毛片久久| 处破女av一区二区| 91福利视频网站| 日韩欧美区一区二| 国产精品理伦片| 三级欧美在线一区| 精品一区二区久久久| 粉嫩一区二区三区在线看| 色综合色狠狠天天综合色| 欧美美女网站色| 国产欧美日韩在线| 午夜欧美视频在线观看| 久久国产日韩欧美精品| www.视频一区| 日韩精品中午字幕| 国产精品每日更新| 免费视频最近日韩| 91视频国产观看| 精品国产乱码久久久久久1区2区 | 久久视频一区二区| 亚洲欧美另类图片小说| 久久99国产精品成人| 91国产视频在线观看| 欧美精品一区男女天堂| 国产91丝袜在线观看| 91精品国产综合久久久久久久久久| 久久久精品国产免费观看同学| 艳妇臀荡乳欲伦亚洲一区| 成人综合婷婷国产精品久久蜜臀| 538prom精品视频线放| 一区二区三区在线影院| 8v天堂国产在线一区二区| 欧美不卡一二三| 视频一区二区三区在线| www.欧美日韩国产在线| 久久综合丝袜日本网| 蜜桃视频一区二区| 欧美丰满嫩嫩电影| 亚洲图片一区二区| 福利一区在线观看| 欧美一级高清片| 亚洲三级免费电影| 成人精品视频一区二区三区 | 91国产免费看| 亚洲男同性恋视频| 色婷婷精品久久二区二区蜜臀av| 中文字幕亚洲欧美在线不卡| 不卡免费追剧大全电视剧网站| 久久综合久色欧美综合狠狠| 寂寞少妇一区二区三区| 久久亚洲影视婷婷| jlzzjlzz亚洲日本少妇| 最近中文字幕一区二区三区| 99re热视频这里只精品| 亚洲一区二区三区在线看| 欧美剧情片在线观看| 老色鬼精品视频在线观看播放| 欧美大胆一级视频| 国产成人日日夜夜| 亚洲自拍偷拍av| 精品免费国产二区三区| av在线播放一区二区三区| 亚洲自拍偷拍av| 久久精品一区二区| 色欧美日韩亚洲| 国产一区二区在线看| 亚洲日本在线看| 欧美成人官网二区| 色狠狠综合天天综合综合| 日韩激情在线观看| 亚洲欧洲日韩av| 日韩欧美国产一区在线观看| 99久久综合精品| 久久69国产一区二区蜜臀| 亚洲精品成人精品456| 欧美精品一区二区久久久| 日本韩国一区二区三区视频| 国产最新精品免费| 日韩主播视频在线| 一区二区三区中文在线观看| 国产视频一区在线观看| 欧美一区在线视频| 欧美午夜在线观看| fc2成人免费人成在线观看播放| 亚洲成人精品在线观看| 成人欧美一区二区三区| 国产欧美精品日韩区二区麻豆天美| 337p亚洲精品色噜噜| 欧美在线你懂得| 91女神在线视频| 99视频精品在线| 91浏览器在线视频| 波多野结衣在线一区| 狠狠色狠狠色综合日日91app| 亚洲国产成人tv| 午夜精品一区二区三区免费视频| 综合中文字幕亚洲| 一区二区免费在线播放| 亚洲精品国久久99热| 亚洲人成伊人成综合网小说| 国产精品麻豆网站| 一区二区三区精品视频| 日韩毛片视频在线看| 亚洲天堂av一区| 亚洲福利一二三区| 日韩福利电影在线观看| 久久精品国产亚洲aⅴ | 成年人午夜久久久| 色婷婷精品久久二区二区蜜臂av| 国产成人亚洲综合a∨婷婷 | 欧美视频一二三区| 91福利社在线观看| 欧美一级视频精品观看| 精品少妇一区二区三区日产乱码| 26uuu久久综合| 自拍偷在线精品自拍偷无码专区| 亚洲免费观看高清| 蜜臀91精品一区二区三区| 国产不卡高清在线观看视频| 91视频免费观看| 欧美xxxx在线观看| 国产精品嫩草99a| 日韩电影一区二区三区| 国产乱码精品一区二区三区忘忧草| 91在线小视频| 亚洲视频一区在线| 午夜电影一区二区| 不卡av在线免费观看| 日韩欧美激情一区| 一区二区三区欧美亚洲| 国产麻豆精品视频| 欧美顶级少妇做爰| 中文字幕中文乱码欧美一区二区 | 欧美三级一区二区| 91网站最新网址| 精品日韩欧美在线| 亚洲福利一二三区| 91日韩精品一区| 国产精品免费aⅴ片在线观看| 日韩成人精品在线| 欧美日韩精品专区| 亚洲自拍欧美精品| 91啪亚洲精品| 日韩美女久久久| av资源网一区| 国产精品美女一区二区| 国产精品一二三在| 久久精品人人做人人综合| 久草在线在线精品观看| 日韩视频在线你懂得| 日韩成人免费电影| 日韩欧美中文一区二区|