亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
蜜臀91精品一区二区三区| 国产精品传媒入口麻豆| 性久久久久久久| 欧美日韩免费在线视频| 偷拍自拍另类欧美| 日韩久久久精品| 国产精品中文欧美| 亚洲欧洲国产专区| 欧美视频精品在线观看| 老司机精品视频导航| 久久久.com| 色悠久久久久综合欧美99| 午夜精品福利一区二区三区蜜桃| 91精品啪在线观看国产60岁| 国产一区福利在线| 亚洲乱码中文字幕| 日韩午夜在线观看视频| 白白色亚洲国产精品| 亚洲一区二区在线免费看| 欧美一级欧美三级| 成人h动漫精品一区二| 一区二区三区在线免费播放| 欧美一区二区免费观在线| 国产精品99久久久久久似苏梦涵| 亚洲欧洲国产日本综合| 日韩丝袜美女视频| 91丨porny丨中文| 老司机精品视频一区二区三区| 国产精品福利影院| 91精品久久久久久久99蜜桃| 成人美女在线观看| 麻豆成人免费电影| 亚洲免费av观看| 久久久久久久久蜜桃| 欧美日韩亚州综合| 9人人澡人人爽人人精品| 蜜桃av一区二区| 亚洲精品久久嫩草网站秘色| 精品国产欧美一区二区| 欧美视频在线一区| 成人永久aaa| 久久se精品一区精品二区| 亚洲已满18点击进入久久| 国产亚洲短视频| 欧美日韩一二三| 精品国产欧美一区二区| 在线影院国内精品| 国产99精品国产| 免费看黄色91| 亚洲国产一区二区在线播放| 国产精品久久久久天堂| 精品成人a区在线观看| 欧美精品九九99久久| 色婷婷精品大在线视频| 成人免费视频网站在线观看| 极品销魂美女一区二区三区| 日韩成人一级片| 午夜电影网亚洲视频| 一区二区高清免费观看影视大全| 国产精品久久国产精麻豆99网站| 国产欧美一区二区精品婷婷| 精品欧美久久久| 日韩免费高清av| 欧美mv和日韩mv国产网站| 欧美日韩国产免费| 精品视频1区2区3区| 欧美性色aⅴ视频一区日韩精品| 91丨porny丨蝌蚪视频| 9色porny自拍视频一区二区| av电影在线观看完整版一区二区| 国产精品1区二区.| 丁香亚洲综合激情啪啪综合| 国产精品1区2区3区| 国产精品一区2区| 国产精品一品视频| 丰满少妇在线播放bd日韩电影| 国产麻豆一精品一av一免费| 经典三级视频一区| 国产精品亚洲成人| 成人激情校园春色| 色综合久久九月婷婷色综合| 色综合久久综合网欧美综合网| 91麻豆精东视频| 欧美视频在线不卡| 欧美一区二区日韩| 久久综合视频网| 国产精品成人一区二区三区夜夜夜| 国产精品久久久久久久久动漫| 最新久久zyz资源站| 亚洲精品ww久久久久久p站| 亚洲精品v日韩精品| 婷婷开心久久网| 精品中文av资源站在线观看| 国产精品自拍av| 99久久er热在这里只有精品15 | 国产成人高清视频| 99精品在线免费| 欧美日韩一区二区在线观看视频| 欧美一区二区三区播放老司机| 欧美mv和日韩mv的网站| 国产精品免费aⅴ片在线观看| 亚洲欧美综合在线精品| 午夜欧美电影在线观看| 国产最新精品免费| 91香蕉国产在线观看软件| 欧美日韩日日骚| 久久色在线观看| 亚洲精品ww久久久久久p站| 蜜臀久久久99精品久久久久久| 国产精品99久| 欧美日韩一二区| 久久精品视频在线免费观看| 亚洲一卡二卡三卡四卡| 国产资源在线一区| 色狠狠av一区二区三区| 日韩女优av电影| 亚洲欧美综合在线精品| 美女脱光内衣内裤视频久久网站 | 国产成人午夜视频| 欧美亚洲愉拍一区二区| 久久久久久久久久电影| 亚洲综合男人的天堂| 国产精品亚洲а∨天堂免在线| 欧洲一区二区av| 国产精品日日摸夜夜摸av| 强制捆绑调教一区二区| 91久久线看在观草草青青 | 国产精品久线在线观看| 五月天激情小说综合| 懂色av一区二区三区蜜臀 | 欧美色成人综合| 国产精品久久久久一区| 蜜桃视频在线一区| 一本到不卡免费一区二区| 久久九九国产精品| 男女激情视频一区| 欧美视频一区二区三区| 综合精品久久久| 高清免费成人av| 久久一二三国产| 麻豆精品一区二区三区| 精品视频在线免费| 亚洲欧美乱综合| 成人精品国产福利| 国产校园另类小说区| 免费成人你懂的| 欧美日韩精品系列| 亚洲精品国久久99热| av男人天堂一区| 欧美激情在线一区二区三区| 久久精品国产999大香线蕉| 欧美日韩不卡一区二区| 亚洲国产综合色| 色国产综合视频| 亚洲九九爱视频| 色综合久久天天| 综合av第一页| 91女厕偷拍女厕偷拍高清| 1区2区3区欧美| a亚洲天堂av| 国产精品久久久久久久久图文区| 国产精品夜夜嗨| 欧美精品一区二区蜜臀亚洲| 久久精品国产久精国产爱| 精品久久一区二区| 精品无人区卡一卡二卡三乱码免费卡 | 欧美日韩夫妻久久| 亚洲超碰精品一区二区| 欧美日韩精品一区二区三区| 午夜精品在线看| 日韩欧美不卡在线观看视频| 蜜臀av性久久久久蜜臀aⅴ| 欧美大片拔萝卜| 国产一区不卡在线| 日本一区二区三区免费乱视频| 成人一区二区三区中文字幕| 中文字幕在线不卡一区二区三区| av激情成人网| 亚洲一二三区在线观看| 69堂精品视频| 国产一区不卡视频| 最新日韩av在线| 在线看日韩精品电影| 日韩黄色在线观看| 亚洲欧洲国产日韩| 色欧美片视频在线观看在线视频| 亚洲一区欧美一区| 精品日韩在线一区| 成人黄动漫网站免费app| 一区二区三区不卡视频在线观看| 91麻豆精品国产91久久久更新时间| 日本va欧美va瓶| 国产亚洲人成网站| 91高清视频在线| 久久99精品视频| 亚洲欧美日韩久久精品| 欧美一卡二卡三卡| 成人手机电影网| 日韩黄色免费网站| 中文字幕精品三区|