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

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

?? main.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* -*- 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, 1998. * * The Initial Developer of the Original Code is Netscape * Communications Corporation.  Portions created by Netscape are * Copyright (C) 1997-1999 Netscape Communications Corporation. All * Rights Reserved. * * Contributor(s): * Patrick Beard * Norris Boyd * Igor Bukanov * Rob Ginda * Kurt Westerfeld * * 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. */package org.mozilla.javascript.tools.shell;import java.io.*;import java.net.URL;import java.net.URLConnection;import java.net.MalformedURLException;import java.util.*;import org.mozilla.javascript.*;import org.mozilla.javascript.tools.ToolErrorReporter;/** * The shell program. * * Can execute scripts interactively or in batch mode at the command line. * An example of controlling the JavaScript engine. * * @author Norris Boyd */public class Main{    public static final ShellContextFactory        shellContextFactory = new ShellContextFactory();    /**     * Proxy class to avoid proliferation of anonymous classes.     */    private static class IProxy implements ContextAction    {        private static final int PROCESS_FILES = 1;        private static final int EVAL_INLINE_SCRIPT = 2;        private int type;        String[] args;        String scriptText;        IProxy(int type)        {            this.type = type;        }        public Object run(Context cx)        {            if (type == PROCESS_FILES) {                processFiles(cx, args);            } else if (type == EVAL_INLINE_SCRIPT) {                Script script = loadScriptFromSource(cx, scriptText,                                                     "<command>", 1, null);                if (script != null) {                    evaluateScript(script, cx, getGlobal());                }            } else {                throw Kit.codeBug();            }            return null;        }    }    /**     * Main entry point.     *     * Process arguments as would a normal Java program. Also     * create a new Context and associate it with the current thread.     * Then set up the execution environment and begin to     * execute scripts.     */    public static void main(String args[]) {        try {            if (Boolean.getBoolean("rhino.use_java_policy_security")) {                initJavaPolicySecuritySupport();            }        } catch (SecurityException ex) {            ex.printStackTrace(System.err);        }        int result = exec(args);        if (result != 0) {            System.exit(result);        }    }    /**     *  Execute the given arguments, but don't System.exit at the end.     */    public static int exec(String origArgs[])    {        errorReporter = new ToolErrorReporter(false, global.getErr());        shellContextFactory.setErrorReporter(errorReporter);        String[] args = processOptions(origArgs);        if (processStdin)            fileList.addElement(null);        if (!global.initialized) {            global.init(shellContextFactory);        }        IProxy iproxy = new IProxy(IProxy.PROCESS_FILES);        iproxy.args = args;        shellContextFactory.call(iproxy);        return exitCode;    }    static void processFiles(Context cx, String[] args)    {        // define "arguments" array in the top-level object:        // need to allocate new array since newArray requires instances        // of exactly Object[], not ObjectSubclass[]        Object[] array = new Object[args.length];        System.arraycopy(args, 0, array, 0, args.length);        Scriptable argsObj = cx.newArray(global, array);        global.defineProperty("arguments", argsObj,                              ScriptableObject.DONTENUM);        for (int i=0; i < fileList.size(); i++) {            processSource(cx, (String) fileList.elementAt(i));        }    }    public static Global getGlobal()    {        return global;    }    /**     * Parse arguments.     */    public static String[] processOptions(String args[])    {        String usageError;        goodUsage: for (int i = 0; ; ++i) {            if (i == args.length) {                return new String[0];            }            String arg = args[i];            if (!arg.startsWith("-")) {                processStdin = false;                fileList.addElement(arg);                String[] result = new String[args.length - i - 1];                System.arraycopy(args, i+1, result, 0, args.length - i - 1);                return result;            }            if (arg.equals("-version")) {                if (++i == args.length) {                    usageError = arg;                    break goodUsage;                }                int version;                try {                    version = Integer.parseInt(args[i]);                } catch (NumberFormatException ex) {                    usageError = args[i];                    break goodUsage;                }                if (!Context.isValidLanguageVersion(version)) {                    usageError = args[i];                    break goodUsage;                }                shellContextFactory.setLanguageVersion(version);                continue;            }            if (arg.equals("-opt") || arg.equals("-O")) {                if (++i == args.length) {                    usageError = arg;                    break goodUsage;                }                int opt;                try {                    opt = Integer.parseInt(args[i]);                } catch (NumberFormatException ex) {                    usageError = args[i];                    break goodUsage;                }                if (opt == -2) {                    // Compatibility with Cocoon Rhino fork                    opt = -1;                } else if (!Context.isValidOptimizationLevel(opt)) {                    usageError = args[i];                    break goodUsage;                }                shellContextFactory.setOptimizationLevel(opt);                continue;            }            if (arg.equals("-strict")) {                shellContextFactory.setStrictMode(true);                continue;            }            if (arg.equals("-e")) {                processStdin = false;                if (++i == args.length) {                    usageError = arg;                    break goodUsage;                }                if (!global.initialized) {                    global.init(shellContextFactory);                }                IProxy iproxy = new IProxy(IProxy.EVAL_INLINE_SCRIPT);                iproxy.scriptText = args[i];                shellContextFactory.call(iproxy);                continue;            }            if (arg.equals("-w")) {                errorReporter.setIsReportingWarnings(true);                continue;            }            if (arg.equals("-f")) {                processStdin = false;                if (++i == args.length) {                    usageError = arg;                    break goodUsage;                }                fileList.addElement(args[i].equals("-") ? null : args[i]);                continue;            }            if (arg.equals("-sealedlib")) {                global.setSealedStdLib(true);                continue;            }            usageError = arg;            break goodUsage;        }        // print usage message        global.getOut().println(            ToolErrorReporter.getMessage("msg.shell.usage", usageError));        System.exit(1);        return null;    }    private static void initJavaPolicySecuritySupport()    {        Throwable exObj;        try {            Class cl = Class.forName                ("org.mozilla.javascript.tools.shell.JavaPolicySecurity");            securityImpl = (SecurityProxy)cl.newInstance();            SecurityController.initGlobal(securityImpl);            return;        } catch (ClassNotFoundException ex) {            exObj = ex;        } catch (IllegalAccessException ex) {            exObj = ex;        } catch (InstantiationException ex) {            exObj = ex;        } catch (LinkageError ex) {            exObj = ex;        }        throw Kit.initCause(new IllegalStateException(            "Can not load security support: "+exObj), exObj);    }    /**     * Evaluate JavaScript source.     *     * @param cx the current context     * @param filename the name of the file to compile, or null     *                 for interactive mode.     */    public static void processSource(Context cx, String filename)    {        if (filename == null || filename.equals("-")) {            PrintStream ps = global.getErr();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区三区高清不卡| 一本到三区不卡视频| 日韩一级大片在线| 免费xxxx性欧美18vr| 欧美日韩一区二区三区高清| 婷婷中文字幕一区三区| 欧美三级在线播放| 日韩av成人高清| 久久久久久久久久电影| 丁香亚洲综合激情啪啪综合| 亚洲色图制服诱惑 | 久久久久国产精品麻豆ai换脸| 九色|91porny| 中文字幕一区二区5566日韩| 日本伦理一区二区| 日本欧美一区二区在线观看| 国产亚洲成aⅴ人片在线观看| 高清不卡在线观看| 亚洲一区视频在线| 日韩一级完整毛片| 成人精品免费看| 亚洲资源在线观看| 日韩欧美123| 色综合天天综合给合国产| 亚洲一区二区三区视频在线播放 | 久久99国产精品免费| 国产精品丝袜91| 777久久久精品| 成人影视亚洲图片在线| 午夜视频一区二区| 国产日韩欧美不卡| 欧美日韩成人综合| 成人黄色av电影| 美女一区二区久久| 一区二区三区四区不卡视频 | 国产成人a级片| 午夜精品免费在线观看| 国产拍欧美日韩视频二区| 欧美三级午夜理伦三级中视频| 国产盗摄视频一区二区三区| 亚洲一区免费在线观看| 久久久久久麻豆| 51精品久久久久久久蜜臀| 成人性色生活片免费看爆迷你毛片| 午夜精品久久久久久久久| 中文字幕av资源一区| 日韩欧美三级在线| 欧美三级资源在线| 99re成人精品视频| 国产在线精品一区二区三区不卡| 亚洲国产欧美在线| 中文字幕亚洲不卡| 久久久www成人免费毛片麻豆 | 日韩电影在线免费看| 亚洲人精品一区| 国产精品美女久久久久久久网站| 日韩亚洲欧美在线观看| 91黄色免费网站| 91视视频在线观看入口直接观看www | 亚洲1区2区3区4区| 亚洲色图都市小说| 久久精品视频一区| 欧美成人bangbros| 91麻豆精品91久久久久同性| 在线中文字幕一区| 波多野洁衣一区| 国产精品一区二区久久不卡| 精品一区中文字幕| 麻豆久久久久久| 久久国产精品一区二区| 日本一道高清亚洲日美韩| 天天综合日日夜夜精品| 亚洲国产精品影院| 亚洲成人动漫在线观看| 亚洲午夜久久久久久久久久久| 一区二区三区在线视频观看| 国产精品福利在线播放| 国产精品每日更新| 亚洲欧洲三级电影| 国产精品高潮呻吟久久| 中文字幕一区三区| 综合欧美一区二区三区| 综合久久国产九一剧情麻豆| 亚洲精品写真福利| 一区二区三区在线看| 亚洲v日本v欧美v久久精品| 亚洲一卡二卡三卡四卡无卡久久| 亚洲品质自拍视频网站| 亚洲小少妇裸体bbw| 亚洲国产成人av网| 蜜桃av噜噜一区二区三区小说| 另类小说色综合网站| 国产一区在线看| 国产91在线观看丝袜| 波波电影院一区二区三区| 色乱码一区二区三区88| 欧美三级日本三级少妇99| 欧美色中文字幕| 日韩免费视频线观看| 中文字幕欧美日本乱码一线二线| 亚洲视频一区二区在线| 性感美女极品91精品| 韩国理伦片一区二区三区在线播放| 狠狠色伊人亚洲综合成人| 国产成a人无v码亚洲福利| 欧洲人成人精品| 日韩一区二区三区免费看| 国产亚洲制服色| 一区二区三区免费网站| 日本欧美一区二区三区| 成人午夜精品在线| 欧美性大战久久| 久久久一区二区三区捆绑**| 国产精品伦一区二区三级视频| 一区二区三区电影在线播| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品一品二品| 欧美日韩一级视频| 国产日韩三级在线| 亚洲一区二区三区四区五区黄| 久久国产免费看| 色偷偷久久一区二区三区| 精品av久久707| 一区二区三区精品久久久| 精品制服美女久久| 欧美在线观看一区| 国产欧美精品一区二区色综合朱莉| 亚洲福利视频一区二区| 懂色一区二区三区免费观看| 日韩西西人体444www| 日韩理论电影院| 国产高清视频一区| 91精品免费观看| 亚洲韩国一区二区三区| 成人性生交大合| 久久先锋影音av鲁色资源网| 亚洲成精国产精品女| 91美女片黄在线观看| 久久久国产精品午夜一区ai换脸| 日韩电影网1区2区| 欧美亚洲动漫精品| 亚洲视频免费在线观看| 国产精品中文欧美| 欧美va亚洲va香蕉在线| 日韩高清在线电影| 欧美日韩国产美女| 一区二区三区四区精品在线视频 | 亚洲免费在线电影| 国产成人精品三级| 欧美大片免费久久精品三p| 亚洲成人精品一区二区| 91色乱码一区二区三区| 中文字幕一区二区日韩精品绯色| 国产一区在线观看视频| 欧美一区二区三区免费视频| 亚洲综合一区二区| 色综合久久久久网| 亚洲欧美影音先锋| 成人激情动漫在线观看| 久久久www免费人成精品| 国产在线一区观看| 日韩三级视频中文字幕| 日韩精品成人一区二区在线| 欧美日本精品一区二区三区| 亚洲激情五月婷婷| 一本色道综合亚洲| 亚洲在线中文字幕| 欧美亚洲另类激情小说| 亚洲男帅同性gay1069| 91在线精品一区二区三区| 国产精品青草综合久久久久99| 国产夫妻精品视频| 久久精品亚洲麻豆av一区二区| 国产乱子伦视频一区二区三区| 久久美女艺术照精彩视频福利播放| 久久草av在线| 国产喷白浆一区二区三区| 成人免费毛片a| 亚洲女同ⅹxx女同tv| 日本韩国精品一区二区在线观看| 亚洲视频狠狠干| 欧美日韩成人综合| 久久黄色级2电影| 国产午夜精品一区二区三区四区| 国产成人精品免费看| 亚洲婷婷国产精品电影人久久| 在线免费亚洲电影| 日一区二区三区| 精品99999| av高清久久久| 亚洲成人午夜影院| 精品福利一区二区三区| 成人爱爱电影网址| 亚洲国产美女搞黄色| 欧美精品一区二区精品网| 国产福利不卡视频| 亚洲成在人线在线播放| 欧美va亚洲va在线观看蝴蝶网| 成人精品免费视频| 偷拍日韩校园综合在线|