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

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

?? xmllibimpl.java

?? 主要的怎么樣結(jié)合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, 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): * Igor Bukanov * * 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.xmlimpl;import org.mozilla.javascript.*;import org.mozilla.javascript.xml.*;import org.apache.xmlbeans.XmlCursor;import org.apache.xmlbeans.XmlObject;public final class XMLLibImpl extends XMLLib{    private Scriptable globalScope;    XML xmlPrototype;    XMLList xmlListPrototype;    Namespace namespacePrototype;    QName qnamePrototype;    // Environment settings...    boolean ignoreComments;    boolean ignoreProcessingInstructions;    boolean ignoreWhitespace;    boolean prettyPrinting;    int prettyIndent;    Scriptable globalScope()    {        return globalScope;    }    private XMLLibImpl(Scriptable globalScope)    {        this.globalScope = globalScope;        defaultSettings();    }    public static void init(Context cx, Scriptable scope, boolean sealed)    {        // To force LinkageError if XmlObject is not available        XmlObject.class.getName();        XMLLibImpl lib = new XMLLibImpl(scope);        XMLLib bound = lib.bindToScope(scope);        if (bound == lib) {            lib.exportToScope(sealed);        }    }    private void exportToScope(boolean sealed)    {        xmlPrototype = XML.createEmptyXML(this);        xmlListPrototype = new XMLList(this);        namespacePrototype = new Namespace(this, "", "");        qnamePrototype = new QName(this, "", "", "");        xmlPrototype.exportAsJSClass(sealed);        xmlListPrototype.exportAsJSClass(sealed);        namespacePrototype.exportAsJSClass(sealed);        qnamePrototype.exportAsJSClass(sealed);    }    void defaultSettings()    {        ignoreComments = true;        ignoreProcessingInstructions = true;        ignoreWhitespace = true;        prettyPrinting = true;        prettyIndent = 2;    }    XMLName toAttributeName(Context cx, Object nameValue)    {        String uri;        String localName;        if (nameValue instanceof String) {            uri = "";            localName = (String)nameValue;        } else if (nameValue instanceof XMLName) {            XMLName xmlName = (XMLName)nameValue;            if (!xmlName.isAttributeName()) {                xmlName.setAttributeName();            }            return xmlName;        } else if (nameValue instanceof QName) {            QName qname = (QName)nameValue;            uri = qname.uri();            localName = qname.localName();        } else if (nameValue instanceof Boolean                   || nameValue instanceof Number                   || nameValue == Undefined.instance                   || nameValue == null)        {            throw badXMLName(nameValue);        } else {            uri = "";            localName = ScriptRuntime.toString(nameValue);        }        XMLName xmlName = XMLName.formProperty(uri, localName);        xmlName.setAttributeName();        return xmlName;    }    private static RuntimeException badXMLName(Object value)    {        String msg;        if (value instanceof Number) {            msg = "Can not construct XML name from number: ";        } else if (value instanceof Boolean) {            msg = "Can not construct XML name from boolean: ";        } else if (value == Undefined.instance || value == null) {            msg = "Can not construct XML name from ";        } else {            throw new IllegalArgumentException(value.toString());        }        return ScriptRuntime.typeError(msg+ScriptRuntime.toString(value));    }    XMLName toXMLName(Context cx, Object nameValue)    {        XMLName result;        if (nameValue instanceof XMLName) {            result = (XMLName)nameValue;        } else if (nameValue instanceof QName) {            QName qname = (QName)nameValue;            result = XMLName.formProperty(qname.uri(), qname.localName());        } else if (nameValue instanceof String) {            result = toXMLNameFromString(cx, (String)nameValue);        } else if (nameValue instanceof Boolean                   || nameValue instanceof Number                   || nameValue == Undefined.instance                   || nameValue == null)        {            throw badXMLName(nameValue);        } else {            String name = ScriptRuntime.toString(nameValue);            result = toXMLNameFromString(cx, name);        }        return result;    }    /**     * If value represents Uint32 index, make it available through     * ScriptRuntime.lastUint32Result(cx) and return null.     * Otherwise return the same value as toXMLName(cx, value).     */    XMLName toXMLNameOrIndex(Context cx, Object value)    {        XMLName result;        if (value instanceof XMLName) {            result = (XMLName)value;        } else if (value instanceof String) {            String str = (String)value;            long test = ScriptRuntime.testUint32String(str);            if (test >= 0) {                ScriptRuntime.storeUint32Result(cx, test);                result = null;            } else {                result = toXMLNameFromString(cx, str);            }        } else if (value instanceof Number) {            double d = ((Number)value).doubleValue();            long l = (long)d;            if (l == d && 0 <= l && l <= 0xFFFFFFFFL) {                ScriptRuntime.storeUint32Result(cx, l);                result = null;            } else {                throw badXMLName(value);            }        } else if (value instanceof QName) {            QName qname = (QName)value;            String uri = qname.uri();            boolean number = false;            result = null;            if (uri != null && uri.length() == 0) {                // Only in this case qname.toString() can resemble uint32                long test = ScriptRuntime.testUint32String(uri);                if (test >= 0) {                    ScriptRuntime.storeUint32Result(cx, test);                    number = true;                }            }            if (!number) {                result = XMLName.formProperty(uri, qname.localName());            }        } else if (value instanceof Boolean                   || value == Undefined.instance                   || value == null)        {            throw badXMLName(value);        } else {            String str = ScriptRuntime.toString(value);            long test = ScriptRuntime.testUint32String(str);            if (test >= 0) {                ScriptRuntime.storeUint32Result(cx, test);                result = null;            } else {                result = toXMLNameFromString(cx, str);            }        }        return result;    }    XMLName toXMLNameFromString(Context cx, String name)    {        if (name == null)            throw new IllegalArgumentException();        int l = name.length();        if (l != 0) {            char firstChar = name.charAt(0);            if (firstChar == '*') {                if (l == 1) {                    return XMLName.formStar();                }            } else if (firstChar == '@') {                XMLName xmlName = XMLName.formProperty("", name.substring(1));                xmlName.setAttributeName();                return xmlName;            }        }        String uri = getDefaultNamespaceURI(cx);        return XMLName.formProperty(uri, name);    }    Namespace constructNamespace(Context cx, Object uriValue)    {        String prefix;        String uri;        if (uriValue instanceof Namespace) {            Namespace ns = (Namespace)uriValue;            prefix = ns.prefix();            uri = ns.uri();        } else if (uriValue instanceof QName) {            QName qname = (QName)uriValue;            uri = qname.uri();            if (uri != null) {                prefix = qname.prefix();            } else {                uri = qname.toString();                prefix = null;            }        } else {            uri = ScriptRuntime.toString(uriValue);            prefix = (uri.length() == 0) ? "" : null;        }        return new Namespace(this, prefix, uri);    }    Namespace castToNamespace(Context cx, Object namescapeObj)    {        if (namescapeObj instanceof Namespace) {            return (Namespace)namescapeObj;        }        return constructNamespace(cx, namescapeObj);    }    Namespace constructNamespace(Context cx)    {        return new Namespace(this, "", "");    }    public Namespace constructNamespace(Context cx, Object prefixValue,                                        Object uriValue)    {        String prefix;        String uri;        if (uriValue instanceof QName) {            QName qname = (QName)uriValue;            uri = qname.uri();            if (uri == null) {                uri = qname.toString();            }        } else {            uri = ScriptRuntime.toString(uriValue);        }        if (uri.length() == 0) {            if (prefixValue == Undefined.instance) {                prefix = "";            } else {                prefix = ScriptRuntime.toString(prefixValue);                if (prefix.length() != 0) {                    throw ScriptRuntime.typeError(                        "Illegal prefix '"+prefix+"' for 'no namespace'.");                }            }        } else if (prefixValue == Undefined.instance) {            prefix = "";        } else if (!isXMLName(cx, prefixValue)) {            prefix = "";        } else {            prefix = ScriptRuntime.toString(prefixValue);        }        return new Namespace(this, prefix, uri);    }    String getDefaultNamespaceURI(Context cx)    {        String uri = "";        if (cx == null) {            cx = Context.getCurrentContext();        }        if (cx != null) {            Object ns = ScriptRuntime.searchDefaultNamespace(cx);            if (ns != null) {                if (ns instanceof Namespace) {                    uri = ((Namespace)ns).uri();                } else {                    // Should not happen but for now it could                    // due to bad searchDefaultNamespace implementation.                }            }        }        return uri;    }    Namespace getDefaultNamespace(Context cx)    {        if (cx == null) {            cx = Context.getCurrentContext();            if (cx == null) {                return namespacePrototype;            }        }        Namespace result;        Object ns = ScriptRuntime.searchDefaultNamespace(cx);        if (ns == null) {            result = namespacePrototype;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩在线电影| 亚洲综合精品自拍| 亚洲综合一二三区| 国产美女主播视频一区| 一本到一区二区三区| 国产欧美日韩视频在线观看| 日韩成人精品在线| 在线免费观看视频一区| 久久久精品国产免费观看同学| 性做久久久久久免费观看| av在线不卡免费看| 精品福利视频一区二区三区| 亚洲成人动漫在线观看| 色综合 综合色| 国产精品麻豆久久久| 国产露脸91国语对白| 日韩一区国产二区欧美三区| 一区二区三区日韩精品视频| 成人网在线播放| 国产日韩欧美在线一区| 国产在线观看一区二区 | 精品在线播放免费| 777奇米成人网| 亚洲国产一区视频| 欧美亚洲一区二区在线| 亚洲欧美日韩成人高清在线一区| 成人精品免费视频| 国产精品白丝在线| 99久久婷婷国产综合精品| 中文字幕一区二区三区精华液| 成人亚洲精品久久久久软件| 欧美精品一区二区三区很污很色的 | 久久精品免视看| 精品亚洲porn| 国产色产综合色产在线视频| 粉嫩av一区二区三区在线播放| 26uuu另类欧美| 国产成人精品网址| 日本一区二区电影| 不卡一区二区三区四区| 自拍偷拍国产亚洲| 欧美亚洲免费在线一区| 午夜精品福利久久久| 7777精品伊人久久久大香线蕉 | 国产成人精品影视| 中文字幕精品一区二区三区精品| av一区二区三区黑人| 亚洲免费在线视频一区 二区| 欧美图片一区二区三区| 免费高清不卡av| 欧美国产欧美综合| 色婷婷亚洲综合| 蜜臀91精品一区二区三区| 久久久亚洲精品一区二区三区| 丁香网亚洲国际| 亚洲图片有声小说| 精品三级在线看| av网站免费线看精品| 亚洲福利视频三区| 久久久午夜精品理论片中文字幕| 91在线视频播放| 裸体健美xxxx欧美裸体表演| 精品三级av在线| 91免费在线播放| 蜜臀久久99精品久久久久宅男 | 欧美日韩国产高清一区二区三区| 免费的国产精品| 中文字幕五月欧美| 69av一区二区三区| 国产不卡高清在线观看视频| av高清久久久| 亚洲人一二三区| 久久久噜噜噜久噜久久综合| 国产一区二区三区美女| 夜色激情一区二区| 久久久久久**毛片大全| 欧美亚洲一区二区在线| 国产成人在线观看| 日韩精品国产欧美| 亚洲日本在线a| 久久久国产午夜精品 | 亚洲综合免费观看高清完整版在线| 欧美日本在线一区| av一二三不卡影片| 精品中文字幕一区二区| 亚洲国产精品久久久久婷婷884| 国产免费成人在线视频| 欧美一区二区在线不卡| 日本久久精品电影| 不卡的av网站| 国产69精品久久久久毛片| 青青草国产成人av片免费| 亚洲精品你懂的| 国产精品欧美一区二区三区| 日韩美女天天操| 欧美影视一区二区三区| 97久久超碰国产精品电影| 国产一区二区久久| 精品亚洲成a人| 麻豆国产精品官网| 日本不卡视频在线| 日韩高清在线不卡| 视频一区二区欧美| 亚洲gay无套男同| 亚洲综合色视频| 亚洲专区一二三| 日韩美女久久久| 亚洲欧美日韩综合aⅴ视频| 中文久久乱码一区二区| 日本一区二区免费在线观看视频 | 日韩欧美亚洲另类制服综合在线| 欧美三级日韩三级国产三级| 在线看国产一区二区| 欧美在线视频日韩| 欧美男男青年gay1069videost| 欧美最猛性xxxxx直播| 欧美主播一区二区三区美女| 欧美在线视频不卡| 9191久久久久久久久久久| 欧美区视频在线观看| 欧美精品久久久久久久多人混战| 欧美日韩在线播放| 欧美精品在线观看播放| 91精品国产色综合久久不卡电影| 欧美一区二区三区视频在线 | 欧美视频一区二区三区四区 | 日本中文在线一区| 麻豆精品一区二区三区| 国产永久精品大片wwwapp| 风间由美中文字幕在线看视频国产欧美| 激情亚洲综合在线| 成人av手机在线观看| 欧美中文字幕亚洲一区二区va在线 | 99久久免费视频.com| 一本色道久久综合狠狠躁的推荐| 欧美午夜理伦三级在线观看| 欧美高清dvd| 国产清纯在线一区二区www| 国产精品不卡在线| 亚洲bdsm女犯bdsm网站| 久久成人羞羞网站| 99国产精品国产精品毛片| 欧美日本一区二区| 欧美激情在线一区二区三区| 亚洲综合色噜噜狠狠| 久88久久88久久久| 91免费版在线| 精品久久久久香蕉网| 自拍偷拍亚洲欧美日韩| 免费成人美女在线观看.| www.亚洲免费av| 884aa四虎影成人精品一区| 国产日韩精品视频一区| 亚洲午夜久久久久久久久久久 | 久久久久国产精品免费免费搜索| 中文字幕一区二区三区不卡在线| 日韩av一区二区三区四区| 国产裸体歌舞团一区二区| 色视频成人在线观看免| 久久综合狠狠综合| 亚洲bt欧美bt精品777| 丰满放荡岳乱妇91ww| 91精品国产高清一区二区三区蜜臀 | 欧美精品亚洲一区二区在线播放| 久久免费电影网| 亚洲成人你懂的| 成人动漫一区二区三区| 欧美成人在线直播| 一区二区三区电影在线播| 成人综合在线观看| 欧美电影免费观看高清完整版| 一区二区三区高清不卡| 波多野结衣在线aⅴ中文字幕不卡| 91精品在线免费| 亚洲综合成人网| 99久久久无码国产精品| 国产网站一区二区三区| 免费一级片91| 欧美日韩欧美一区二区| 亚洲欧美日韩国产手机在线 | 国产精品免费人成网站| 免费成人在线影院| 色老汉一区二区三区| 国产日韩欧美精品综合| 国内精品免费在线观看| 91精品国产综合久久香蕉麻豆| 亚洲精品伦理在线| 99久久精品免费精品国产| 日本一区二区三区在线不卡| 国产一区亚洲一区| 精品国产一区二区在线观看| 亚洲电影你懂得| 欧美日韩卡一卡二| 亚洲成人久久影院| 欧美婷婷六月丁香综合色| 亚洲国产一区二区在线播放| 色婷婷精品久久二区二区蜜臂av | 精品视频在线免费看| 亚洲一区二区四区蜜桃| 欧美制服丝袜第一页|