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

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

?? xmllibimpl.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, 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一区二区三区免费野_久草精品视频
日韩精品一区二区三区在线播放| 久久久精品tv| 国产91在线看| 免费在线一区观看| 亚洲最大成人网4388xx| 久久综合色综合88| 欧美日本韩国一区| 9191久久久久久久久久久| 99re6这里只有精品视频在线观看| 国产网站一区二区| 精品成a人在线观看| 久久综合视频网| 欧美tk—视频vk| 日韩精品一区二| 日韩一区二区三区精品视频| 91精品欧美一区二区三区综合在| 欧美三级欧美一级| 欧美日韩精品系列| 欧美色区777第一页| av亚洲精华国产精华精| 在线欧美小视频| 在线欧美小视频| 91麻豆精品国产91久久久久久 | 国产精品成人一区二区艾草| 久久综合九色综合97_久久久 | 日本一区中文字幕| 国产丝袜美腿一区二区三区| 日韩欧美国产三级电影视频| 日韩欧美一级特黄在线播放| 91精品啪在线观看国产60岁| 国产欧美久久久精品影院| 中文av字幕一区| 亚洲卡通欧美制服中文| 亚洲一区免费观看| 亚洲愉拍自拍另类高清精品| 久久不见久久见中文字幕免费| 久草精品在线观看| 国产91精品免费| 欧美综合一区二区| 欧美综合亚洲图片综合区| 欧美精品丝袜中出| 欧美v亚洲v综合ⅴ国产v| 久久久久久久网| 亚洲午夜一二三区视频| 另类小说视频一区二区| 大胆欧美人体老妇| gogo大胆日本视频一区| 欧美一区三区二区| 一区二区三区四区不卡在线 | 国产欧美精品一区二区色综合朱莉 | 韩国三级在线一区| 精品视频一区 二区 三区| 日韩一卡二卡三卡| 国产亚洲女人久久久久毛片| 亚洲精品视频一区| 日韩成人午夜电影| 在线一区二区观看| 欧美最新大片在线看| 久久综合色综合88| 一区二区三区日本| 国产精品一区免费在线观看| 色综合咪咪久久| 久久久亚洲欧洲日产国码αv| 亚洲摸摸操操av| 国产二区国产一区在线观看| 欧美午夜精品一区二区三区| 中文字幕综合网| 成人一区二区在线观看| 欧美情侣在线播放| 亚洲另类中文字| 92精品国产成人观看免费| 久久免费国产精品| 日本女优在线视频一区二区| 91免费精品国自产拍在线不卡| 国产精品一区二区久久精品爱涩| 欧美军同video69gay| 国产精品人成在线观看免费| 日韩福利视频网| 99在线精品观看| 亚洲欧洲成人自拍| 国产一区二区三区在线观看免费| 欧美美女激情18p| 国产精品久久国产精麻豆99网站| 亚洲成人av免费| 国产精品一品视频| 欧美日韩精品一区视频| 久久九九全国免费| 国产精品色在线观看| 欧美一级黄色录像| 国产69精品一区二区亚洲孕妇| 在线亚洲免费视频| 精品对白一区国产伦| 国产综合色视频| 久久女同互慰一区二区三区| 极品少妇xxxx精品少妇| 精品欧美一区二区久久 | 亚洲成av人片一区二区| 99精品国产热久久91蜜凸| 欧美国产精品专区| av在线免费不卡| 午夜精品福利久久久| 日本成人中文字幕在线视频| 91精品综合久久久久久| 激情六月婷婷综合| 亚洲欧美中日韩| 欧美一区二区三区小说| 国产成人av电影在线观看| 亚洲一区二区三区在线看| 日韩精品一区二区三区视频播放 | 亚洲欧美一区二区三区国产精品 | 国产剧情在线观看一区二区| 中文字幕一区二区在线播放| 欧美日本在线观看| 久久不见久久见免费视频1| 欧美国产乱子伦 | 丝袜诱惑制服诱惑色一区在线观看 | 美女脱光内衣内裤视频久久网站| 欧美tk丨vk视频| 91麻豆免费看片| 日本成人中文字幕在线视频| 亚洲情趣在线观看| 国产亚洲欧美在线| 日韩电影免费在线看| 国产精品久久久久久久久图文区| 欧美视频一区在线观看| 成人免费高清在线| 久久国产三级精品| 亚洲福利一区二区| 国产精品免费看片| 欧美精品一区二区不卡 | 日本视频在线一区| 日本最新不卡在线| 色综合久久中文字幕| 天天综合网 天天综合色| 国产欧美一区二区精品性色| 这里只有精品电影| 在线观看精品一区| 99re6这里只有精品视频在线观看| 美脚の诱脚舐め脚责91 | 极品少妇xxxx精品少妇| 性做久久久久久免费观看| 国产精品久久久久影院| 2欧美一区二区三区在线观看视频| 亚洲午夜精品在线| 一区二区三区精品在线| 最新久久zyz资源站| 国产精品网站在线| 中文字幕免费在线观看视频一区| 日韩欧美国产综合| 日韩欧美不卡在线观看视频| 精品视频免费在线| 欧美一区二区在线不卡| 麻豆成人av在线| 欧美综合天天夜夜久久| 成人av动漫网站| 亚洲黄色av一区| 一区二区三区视频在线看| 亚洲欧洲精品成人久久奇米网| 国产精品婷婷午夜在线观看| 国产精品国产成人国产三级 | 久久99国产精品免费网站| 日韩va亚洲va欧美va久久| 麻豆传媒一区二区三区| 国产一区美女在线| 成人夜色视频网站在线观看| 成人avav影音| 欧美亚洲综合一区| 欧美一级理论片| 国产成人综合在线观看| 成人污视频在线观看| 在线视频国内一区二区| 4438x亚洲最大成人网| 337p日本欧洲亚洲大胆精品| 亚洲国产精品成人综合色在线婷婷 | 国产午夜亚洲精品羞羞网站| 国产日韩欧美制服另类| 亚洲激情自拍视频| 毛片av一区二区| 成人性生交大片| 欧美亚洲图片小说| 欧美xfplay| 日本韩国欧美国产| 欧美v亚洲v综合ⅴ国产v| 国产精品免费久久久久| 亚洲成人av一区二区| 国产一区二区三区免费看 | 一区二区三区四区不卡视频| 免费一级片91| 99热99精品| 日韩限制级电影在线观看| 中文字幕永久在线不卡| 免费观看日韩电影| 色天天综合久久久久综合片| 欧美一级免费大片| 亚洲激情成人在线| 中文字幕亚洲一区二区av在线| 天天免费综合色| 91偷拍与自偷拍精品| 久久综合精品国产一区二区三区 | 亚洲国产va精品久久久不卡综合 |