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

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

?? context.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     * @param length the initial length (JavaScript arrays may have     *               additional properties added dynamically).     * @return the new array object     */    public final Scriptable newArray(Scriptable scope, int length)    {        NativeArray result = new NativeArray(length);        ScriptRuntime.setObjectProtoAndParent(result, scope);        return result;    }    /**     * Create an array with a set of initial elements.     *     * @param scope the scope to create the object in.     * @param elements the initial elements. Each object in this array     *                 must be an acceptable JavaScript type and type     *                 of array should be exactly Object[], not     *                 SomeObjectSubclass[].     * @return the new array object.     */    public final Scriptable newArray(Scriptable scope, Object[] elements)    {        if (elements.getClass().getComponentType() != ScriptRuntime.ObjectClass)            throw new IllegalArgumentException();        NativeArray result = new NativeArray(elements);        ScriptRuntime.setObjectProtoAndParent(result, scope);        return result;    }    /**     * 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.     * @param object the JavaScript array or array-like object     * @return a Java array of objects     * @since 1.4 release 2     */    public final Object[] getElements(Scriptable object)    {        return ScriptRuntime.getArrayElements(object);    }    /**     * Convert the value to a JavaScript boolean value.     * <p>     * See ECMA 9.2.     *     * @param value a JavaScript value     * @return the corresponding boolean value converted using     *         the ECMA rules     */    public static boolean toBoolean(Object value)    {        return ScriptRuntime.toBoolean(value);    }    /**     * Convert the value to a JavaScript Number value.     * <p>     * Returns a Java double for the JavaScript Number.     * <p>     * See ECMA 9.3.     *     * @param value a JavaScript value     * @return the corresponding double value converted using     *         the ECMA rules     */    public static double toNumber(Object value)    {        return ScriptRuntime.toNumber(value);    }    /**     * Convert the value to a JavaScript String value.     * <p>     * See ECMA 9.8.     * <p>     * @param value a JavaScript value     * @return the corresponding String value converted using     *         the ECMA rules     */    public static String toString(Object value)    {        return ScriptRuntime.toString(value);    }    /**     * 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.     *     * @param value any Java object     * @param scope global scope containing constructors for Number,     *              Boolean, and String     * @return new JavaScript object     */    public static Scriptable toObject(Object value, Scriptable scope)    {        return ScriptRuntime.toObject(scope, value);    }    /**     * @deprecated     * @see #toObject(Object, Scriptable)     */    public static Scriptable toObject(Object value, Scriptable scope,                                      Class staticType)    {        return ScriptRuntime.toObject(scope, value);    }    /**     * 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 {@link WrapFactory#wrap(Context cx, Scriptable scope,     * Object obj, Class staticType)} as in:     * <pre>     *    Context cx = Context.getCurrentContext();     *    return cx.getWrapFactory().wrap(cx, scope, value, null);     * </pre>     *     * @param value any Java object     * @param scope top scope object     * @return value suitable to pass to any API that takes JavaScript values.     */    public static Object javaToJS(Object value, Scriptable scope)    {        if (value instanceof String || value instanceof Number            || value instanceof Boolean || value instanceof Scriptable)        {            return value;        } else if (value instanceof Character) {            return String.valueOf(((Character)value).charValue());        } else {            Context cx = Context.getContext();            return cx.getWrapFactory().wrap(cx, scope, value, null);        }    }    /**     * 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.     * @param value the JavaScript value to convert     * @param desiredType the Java type to convert to. Primitive Java     *        types are represented using the TYPE fields in the corresponding     *        wrapper class in java.lang.     * @return the converted value     * @throws EvaluatorException if the conversion cannot be performed     */    public static Object jsToJava(Object value, Class desiredType)        throws EvaluatorException    {        return NativeJavaObject.coerceTypeImpl(desiredType, value);    }    /**     * @deprecated     * @see #jsToJava(Object, Class)     * @throws IllegalArgumentException if the conversion cannot be performed.     *         Note that {@link #jsToJava(Object, Class)} throws     *         {@link EvaluatorException} instead.     */    public static Object toType(Object value, Class desiredType)        throws IllegalArgumentException    {        try {            return jsToJava(value, desiredType);        } catch (EvaluatorException ex) {            IllegalArgumentException                ex2 = new IllegalArgumentException(ex.getMessage());            Kit.initCause(ex2, ex);            throw ex2;        }    }    /**     * Rethrow the exception wrapping it as the script runtime exception.     * Unless the exception is instance of {@link EcmaError} or     * {@link EvaluatorException} it will be wrapped as     * {@link WrappedException}, a subclass of {@link EvaluatorException}.     * 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.     * @throws EvaluatorException     * @throws EcmaError     */    public static RuntimeException throwAsScriptRuntimeEx(Throwable e)    {        while ((e instanceof InvocationTargetException)) {            e = ((InvocationTargetException) e).getTargetException();        }        // special handling of Error so scripts would not catch them        if (e instanceof Error) {            throw (Error)e;        }        if (e instanceof RhinoException) {            throw (RhinoException)e;        }        throw new WrappedException(e);    }    /**     * Tell whether debug information is being generated.     * @since 1.3     */    public final boolean isGeneratingDebug()    {        return generatingDebug;    }    /**     * Specify whether or not debug information should be generated.     * <p>     * Setting the generation of debug information on will set the     * optimization level to zero.     * @since 1.3     */    public final void setGeneratingDebug(boolean generatingDebug)    {        if (sealed) onSealedMutation();        generatingDebugChanged = true;        if (generatingDebug && getOptimizationLevel() > 0)            setOptimizationLevel(0);        this.generatingDebug = generatingDebug;    }    /**     * Tell whether source information is being generated.     * @since 1.3     */    public final boolean isGeneratingSource()    {        return generatingSource;    }    /**     * 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.     * @since 1.3     */    public final void setGeneratingSource(boolean generatingSource)    {        if (sealed) onSealedMutation();        this.generatingSource = generatingSource;    }    /**     * Get the current optimization level.     * <p>     * The optimization level is expressed as an integer between -1 and     * 9.     * @since 1.3     *     */    public final int getOptimizationLevel()    {        return optimizationLevel;    }    /**     * 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.     * @param optimizationLevel an integer indicating the level of     *        optimization to perform     * @since 1.3     *     */    public final void setOptimizationLevel(int optimizationLevel)    {        if (sealed) onSealedMutation();        if (optimizationLevel == -2) {            // To be compatible with Cocoon fork            optimizationLevel = -1;        }        checkOptimizationLevel(optimizationLevel);        if (codegenClass == null)            optimizationLevel = -1;        this.optimizationLevel = optimizationLevel;    }    public static boolean isValidOptimizationLevel(int optimizationLevel)    {        return -1 <= optimizationLevel && optimizationLevel <= 9;    }    public static void checkOptimizationLevel(int optimizationLevel)    {        if (isValidOptimizationLevel(optimizationLevel)) {            return;        }        throw new IllegalArgumentException(            "Optimization level outside [-1..9]: "+optimizationLevel);    }    /**     * Set the security controller for this context.     * <p> SecurityController may only be set if it is currently null     * and {@link SecurityController#hasGlobal()} is <tt>false</tt>.     * Otherwise a SecurityException is thrown.     * @param controller a SecurityController object     * @throws SecurityException if there is already a SecurityController     *         object for this Context or globally installed.     * @see SecurityController#initGlobal(SecurityController controller)     * @see SecurityController#hasGlobal()     */    public final void setSecurityController(SecurityController controller)    {        if (sealed) onSealedMutation();        if (controller == null) throw new IllegalArgumentException();        if (securi

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97久久精品人人爽人人爽蜜臀| 成人高清视频在线| 美女视频免费一区| 成人在线视频一区二区| 一本久久a久久免费精品不卡| 欧美性生活影院| 国产情人综合久久777777| 亚洲欧美电影院| 国模套图日韩精品一区二区| 91啦中文在线观看| 日韩欧美亚洲国产另类 | 欧美日韩视频在线第一区| 国产欧美精品区一区二区三区 | 一区二区三区四区中文字幕| av欧美精品.com| 一区二区视频在线看| 欧美日韩国产小视频在线观看| 亚洲在线一区二区三区| 精品国产乱码久久久久久浪潮| 国产精品99精品久久免费| 亚洲欧洲www| 欧美成人在线直播| 国产aⅴ综合色| 亚洲大尺度视频在线观看| 欧美在线短视频| 国产精品18久久久久久久久久久久 | 国产精品亲子乱子伦xxxx裸| 91麻豆精品国产91久久久资源速度| 色哟哟国产精品免费观看| 丁香婷婷综合五月| 国产精品亚洲成人| 国产精品免费网站在线观看| 亚洲精品第一国产综合野| 欧美精品一区二| 欧美日韩国产电影| 色综合久久中文综合久久97| 国产精品99久久久久久似苏梦涵 | 亚洲18女电影在线观看| 国产精品成人免费精品自在线观看 | 国产精品一区二区视频| 日韩avvvv在线播放| 亚洲国产日产av| 亚洲图片一区二区| 亚洲一区视频在线| 午夜影院久久久| 午夜视频一区在线观看| 亚洲电影激情视频网站| 亚洲欧美精品午睡沙发| 国产精品久久久久久久久免费丝袜| 久久精品视频一区| 日韩午夜精品电影| 久久久99久久| 欧美二区乱c少妇| 久久综合给合久久狠狠狠97色69| 久久久国产精品不卡| 亚洲成人福利片| 91在线观看下载| 精品国产制服丝袜高跟| 亚洲v日本v欧美v久久精品| 国产福利一区二区三区视频在线 | 不卡视频一二三| 日韩情涩欧美日韩视频| 伊人开心综合网| av电影在线不卡| 中文字幕免费观看一区| 国产专区欧美精品| 精品免费国产一区二区三区四区| 午夜精品久久久久久久久| 91丝袜高跟美女视频| 中文字幕一区二区三| 色哟哟国产精品免费观看| 综合久久久久久久| 91色乱码一区二区三区| 国产精品情趣视频| 99精品国产视频| 国产精品理伦片| 欧美亚洲国产bt| 欧美成人精精品一区二区频| 一区二区三区精品在线| 国产在线精品一区二区夜色| 欧美亚洲图片小说| 日韩一区欧美小说| www.日韩大片| 最近中文字幕一区二区三区| 国产99久久久国产精品| 欧美日韩亚洲国产综合| 亚洲日本一区二区| 99re在线精品| 亚洲男人的天堂一区二区| 成人爱爱电影网址| 亚洲免费视频中文字幕| 一本到不卡免费一区二区| 亚洲激情在线播放| 欧美这里有精品| 日韩成人精品在线| 欧美精品三级日韩久久| 性欧美疯狂xxxxbbbb| 日韩情涩欧美日韩视频| 99精品久久只有精品| 欧日韩精品视频| 一区二区三区在线免费播放| 91精品国产综合久久精品麻豆| 精品制服美女久久| 一区二区三区自拍| 久久免费视频色| 欧美精品亚洲一区二区在线播放| 国产精品影视在线| 午夜精品久久久| 国产精品视频yy9299一区| ...xxx性欧美| 久久久久久毛片| 欧美三级三级三级爽爽爽| 成年人网站91| 亚洲特级片在线| 91尤物视频在线观看| 亚洲激情六月丁香| 91精品麻豆日日躁夜夜躁| 天天色天天操综合| 久久久久国产精品麻豆| av影院午夜一区| 舔着乳尖日韩一区| 欧美v日韩v国产v| 成人永久看片免费视频天堂| 亚洲国产精品一区二区尤物区| 日韩一区二区三区三四区视频在线观看| 日韩av电影天堂| 国产精品卡一卡二| 欧美成人一区二区三区片免费 | 91小视频免费观看| 日韩激情一区二区| 亚洲天堂a在线| 亚洲精品在线网站| 欧美久久久影院| 色哟哟一区二区| 99久久久无码国产精品| 奇米一区二区三区av| 亚洲欧美色一区| 日本一区二区视频在线观看| 91麻豆精品国产91久久久资源速度 | 在线免费观看一区| 国产成人99久久亚洲综合精品| 午夜不卡在线视频| 亚洲一区免费观看| 日韩一区中文字幕| 久久久久久久久久久久久女国产乱| 色婷婷久久久综合中文字幕| 国产成人精品影院| 国产剧情一区二区| 久久99精品一区二区三区三区| 丝袜美腿亚洲色图| 亚洲国产一区二区三区| 亚洲一区二区视频| 日日嗨av一区二区三区四区| 亚洲成av人影院| 丝袜诱惑亚洲看片| 寂寞少妇一区二区三区| 激情小说亚洲一区| 国产成人aaa| 91麻豆国产香蕉久久精品| 97超碰欧美中文字幕| 欧亚一区二区三区| 欧美xfplay| 中文字幕永久在线不卡| 亚洲精品一二三| 视频一区视频二区中文字幕| 久久精品国产**网站演员| 精品一区二区三区在线观看国产| 国产一区二区看久久| 成人av综合在线| 91精品午夜视频| 中文字幕欧美区| 亚洲午夜在线视频| 国产盗摄视频一区二区三区| 欧美性生活大片视频| 精品国产露脸精彩对白| 亚洲精品国产品国语在线app| 午夜视频一区在线观看| 成人一区二区视频| 3d动漫精品啪啪一区二区竹菊| 国产三级一区二区三区| 亚洲va欧美va国产va天堂影院| 国产盗摄女厕一区二区三区| 欧美精品亚洲二区| 日本一区二区久久| 日韩不卡一区二区| 在线观看免费视频综合| 国产精品乱码妇女bbbb| 精品午夜一区二区三区在线观看| 色婷婷av一区二区| 亚洲人精品午夜| 国产成人激情av| 黄页视频在线91| a亚洲天堂av| 91精品在线观看入口| 亚洲综合色区另类av| 94-欧美-setu| 亚洲日本护士毛茸茸| 色哟哟国产精品免费观看| 国产精品午夜在线| 岛国av在线一区|