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

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

?? toolerrorreporter.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
字號:
/* -*- 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): * Norris Boyd * 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;import org.mozilla.javascript.*;import java.text.MessageFormat;import java.io.*;import java.util.*;/** * Error reporter for tools. * * Currently used by both the shell and the compiler. */public class ToolErrorReporter implements ErrorReporter {    public ToolErrorReporter(boolean reportWarnings) {        this(reportWarnings, System.err);    }    public ToolErrorReporter(boolean reportWarnings, PrintStream err) {        this.reportWarnings = reportWarnings;        this.err = err;    }    /**     * Look up the message corresponding to messageId in the     * org.mozilla.javascript.tools.shell.resources.Messages property file.     * For internationalization support.     */    public static String getMessage(String messageId) {        return getMessage(messageId, (Object []) null);    }    public static String getMessage(String messageId, String argument) {        Object[] args = { argument };        return getMessage(messageId, args);    }    public static String getMessage(String messageId, Object arg1, Object arg2)    {        Object[] args = { arg1, arg2 };        return getMessage(messageId, args);    }    public static String getMessage(String messageId, Object[] args) {        Context cx = Context.getCurrentContext();        Locale locale = cx == null ? Locale.getDefault() : cx.getLocale();        // ResourceBundle does cacheing.        ResourceBundle rb = ResourceBundle.getBundle            ("org.mozilla.javascript.tools.resources.Messages", locale);        String formatString;        try {            formatString = rb.getString(messageId);        } catch (java.util.MissingResourceException mre) {            throw new RuntimeException("no message resource found for message property "                                       + messageId);        }        if (args == null) {            return formatString;        } else {            MessageFormat formatter = new MessageFormat(formatString);            return formatter.format(args);        }    }    private static String getExceptionMessage(RhinoException ex)    {        String msg;        if (ex instanceof JavaScriptException) {            msg = getMessage("msg.uncaughtJSException", ex.details());        } else if (ex instanceof EcmaError) {            msg = getMessage("msg.uncaughtEcmaError", ex.details());        } else {            msg = ex.toString();        }        return msg;    }    public void warning(String message, String sourceName, int line,                        String lineSource, int lineOffset)    {        if (!reportWarnings)            return;        reportErrorMessage(message, sourceName, line, lineSource, lineOffset,                           true);    }    public void error(String message, String sourceName, int line,                      String lineSource, int lineOffset)    {        hasReportedErrorFlag = true;        reportErrorMessage(message, sourceName, line, lineSource, lineOffset,                           false);    }    public EvaluatorException runtimeError(String message, String sourceName,                                           int line, String lineSource,                                           int lineOffset)    {        error(message, sourceName, line, lineSource, lineOffset);        return new EvaluatorException(message, sourceName, line,                                      lineSource, lineOffset);    }    public boolean hasReportedError() {        return hasReportedErrorFlag;    }    public boolean isReportingWarnings() {        return this.reportWarnings;    }    public void setIsReportingWarnings(boolean reportWarnings) {        this.reportWarnings = reportWarnings;    }    public static void reportException(ErrorReporter er, RhinoException ex)    {        if (er instanceof ToolErrorReporter) {            ((ToolErrorReporter)er).reportException(ex);        } else {            String msg = getExceptionMessage(ex);            er.error(msg, ex.sourceName(), ex.lineNumber(),                     ex.lineSource(), ex.columnNumber());        }    }    public void reportException(RhinoException ex)    {        if (ex instanceof WrappedException) {            WrappedException we = (WrappedException)ex;            we.printStackTrace(err);        } else {            String msg = getExceptionMessage(ex);            reportErrorMessage(msg, ex.sourceName(), ex.lineNumber(),                               ex.lineSource(), ex.columnNumber(), false);        }    }    private void reportErrorMessage(String message, String sourceName, int line,                                    String lineSource, int lineOffset,                                    boolean justWarning)    {        if (line > 0) {            String lineStr = String.valueOf(line);            if (sourceName != null) {                Object[] args = { sourceName, lineStr, message };                message = getMessage("msg.format3", args);            } else {                Object[] args = { lineStr, message };                message = getMessage("msg.format2", args);            }        } else {            Object[] args = { message };            message = getMessage("msg.format1", args);        }        if (justWarning) {            message = getMessage("msg.warning", message);        }        err.println(messagePrefix + message);        if (null != lineSource) {            err.println(messagePrefix + lineSource);            err.println(messagePrefix + buildIndicator(lineOffset));        }    }    private String buildIndicator(int offset){        StringBuffer sb = new StringBuffer();        for (int i = 0; i < offset-1; i++)            sb.append(".");        sb.append("^");        return sb.toString();    }    private final String messagePrefix = "js: ";    private boolean hasReportedErrorFlag;    private boolean reportWarnings;    private PrintStream err;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国模娜娜一区二区三区| 秋霞av亚洲一区二区三| 中文字幕一区av| 国产欧美日韩精品在线| 日韩女同互慰一区二区| 欧美色老头old∨ideo| 欧美日韩一二三区| 欧美日韩第一区日日骚| 91精品国产福利| 久久久久国产精品麻豆ai换脸| 欧美精品一区二区三区很污很色的| 欧美一区二区三区男人的天堂| 日韩精品一区二区三区三区免费| 精品国产亚洲在线| 国产精品电影院| 蜜桃免费网站一区二区三区| 国产一区美女在线| 色天使色偷偷av一区二区| 欧美日韩美女一区二区| 26uuu亚洲| 亚洲成人资源在线| 丁香一区二区三区| 欧美在线999| 久久久99久久| 午夜欧美视频在线观看| 成人在线一区二区三区| 久久中文字幕电影| 国产精品996| 日韩av在线发布| 国产一区999| 日韩欧美你懂的| 亚洲国产精品麻豆| 国产成人精品亚洲777人妖| 免费人成在线不卡| 精品视频1区2区| 亚洲一区二区三区爽爽爽爽爽 | 国产一区二区三区香蕉| 欧美在线免费观看视频| 亚洲日本在线观看| 99久久精品国产导航| 中文字幕欧美三区| 成人一区二区三区在线观看| 久久久久成人黄色影片| 国产真实乱对白精彩久久| 日韩精品在线网站| 国产黑丝在线一区二区三区| 日韩免费一区二区三区在线播放| 午夜精品久久久久影视| 在线亚洲免费视频| 蜜臀久久久久久久| 久久日一线二线三线suv| 国模大尺度一区二区三区| 日本一区二区三区四区在线视频 | 欧美一区午夜视频在线观看| 日本视频一区二区三区| 国产日韩精品一区二区浪潮av| 国产精品资源在线看| 国产精品免费视频观看| 色综合天天性综合| 毛片基地黄久久久久久天堂| 久久综合久久久久88| 色婷婷综合视频在线观看| 视频一区视频二区中文字幕| 久久影音资源网| 99久久精品一区二区| 精品一区二区三区在线视频| 亚洲国产精品成人久久综合一区| 欧美日韩一区二区三区高清| 加勒比av一区二区| 午夜激情一区二区| 一区二区三区国产| 国产欧美综合色| 日韩区在线观看| 欧美一区二区在线播放| 色婷婷av一区二区三区之一色屋| 国内一区二区视频| 日韩av一区二| 久久精品久久99精品久久| 国产精品美女久久久久久久网站| 99视频在线精品| 国产黄色精品视频| 国产一区二区伦理| 久久爱另类一区二区小说| 肉色丝袜一区二区| 日本午夜精品一区二区三区电影| 亚洲天堂精品在线观看| 中文字幕乱码亚洲精品一区| 久久久久久97三级| 久久免费国产精品| 久久久91精品国产一区二区精品 | 精品在线亚洲视频| 精品一区二区av| 国产高清不卡一区二区| 国产91高潮流白浆在线麻豆| 国产99精品国产| 成人精品小蝌蚪| 欧美亚洲国产一区在线观看网站| k8久久久一区二区三区| 99精品热视频| 日本韩国欧美一区二区三区| 色av一区二区| 久久久久久久久久久久久夜| 国产精品久久久久久久岛一牛影视| 综合自拍亚洲综合图不卡区| 亚洲va欧美va国产va天堂影院| 麻豆精品视频在线| 99这里都是精品| 欧美一级国产精品| 日本一区二区三区高清不卡 | 色综合久久久久| 91精品国产色综合久久不卡电影| 精品国产91九色蝌蚪| 亚洲啪啪综合av一区二区三区| 日韩精品电影在线| 波多野结衣一区二区三区| 欧美一级一区二区| 一区二区三区在线观看视频| 国产成人av一区二区三区在线| 欧美日韩中文精品| 亚洲精品你懂的| jlzzjlzz亚洲女人18| 精品国产sm最大网站| 日本午夜精品视频在线观看 | 玖玖九九国产精品| 欧美日韩国产成人在线91| 亚洲欧美日韩系列| 不卡欧美aaaaa| 国产精品久久久久毛片软件| 狠狠狠色丁香婷婷综合久久五月| 91精选在线观看| 舔着乳尖日韩一区| 欧美久久免费观看| 午夜电影一区二区三区| 欧美午夜宅男影院| 亚洲精品高清视频在线观看| 在线观看91视频| 亚洲激情五月婷婷| 日韩在线卡一卡二| 奇米在线7777在线精品| 一本一道综合狠狠老| 亚洲国产综合色| 在线成人av影院| 国产精品99久久久| 亚洲精品中文在线影院| 欧美老肥妇做.爰bbww视频| 天天综合色天天综合| 久久久精品免费免费| 99视频一区二区| 婷婷开心激情综合| 久久精品人人做人人爽97| 99久久精品国产网站| 天堂va蜜桃一区二区三区漫画版 | 久久久久久久网| 一本一本久久a久久精品综合麻豆| 婷婷国产v国产偷v亚洲高清| 欧美变态凌虐bdsm| 色婷婷久久久久swag精品| 久久99国产乱子伦精品免费| 国产精品毛片大码女人| 日韩免费电影一区| 欧美日韩国产高清一区二区三区 | 日韩精品乱码av一区二区| 国产精品福利av| 日韩三级高清在线| 在线不卡欧美精品一区二区三区| 国产精选一区二区三区| 亚洲二区在线视频| 亚洲免费成人av| 成人欧美一区二区三区1314| 欧美va亚洲va香蕉在线| 7777精品伊人久久久大香线蕉| 色综合久久中文综合久久97| 成人激情免费网站| 国产成人精品免费网站| 久久91精品国产91久久小草| 日韩和欧美一区二区三区| 亚洲国产aⅴ天堂久久| 亚洲精品视频观看| 亚洲制服丝袜av| 有码一区二区三区| 依依成人综合视频| 五月开心婷婷久久| 奇米色777欧美一区二区| 麻豆精品一二三| 粉嫩蜜臀av国产精品网站| 懂色av中文字幕一区二区三区 | 欧美一区二区免费| 日韩一区二区在线播放| 精品对白一区国产伦| 久久久欧美精品sm网站| 亚洲人成小说网站色在线| 亚洲一区二区三区四区在线观看| 三级精品在线观看| eeuss鲁片一区二区三区| 欧美视频一区在线| 国产精品无人区| 亚洲国产va精品久久久不卡综合| 日本美女一区二区| 91视视频在线观看入口直接观看www| 91久久国产最好的精华液|