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

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

?? xmlobjectimpl.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 * Ethan Hugg * Terry Lucas * Milen Nankov * * 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.*;/** *  This abstract class describes what all XML objects (XML, XMLList) should have in common. * * @see XML */abstract class XMLObjectImpl extends XMLObject{    private static final Object XMLOBJECT_TAG = new Object();    protected final XMLLibImpl lib;    protected boolean prototypeFlag;    protected XMLObjectImpl(XMLLibImpl lib, XMLObject prototype)    {        super(lib.globalScope(), prototype);        this.lib = lib;    }    /**     * ecmaHas(cx, id) calls this after resolving when id to XMLName     * and checking it is not Uint32 index.     */    abstract boolean hasXMLProperty(XMLName name);    /**     * ecmaGet(cx, id) calls this after resolving when id to XMLName     * and checking it is not Uint32 index.     */    abstract Object getXMLProperty(XMLName name);    /**     * ecmaPut(cx, id, value) calls this after resolving when id to XMLName     * and checking it is not Uint32 index.     */    abstract void putXMLProperty(XMLName name, Object value);    /**     * ecmaDelete(cx, id) calls this after resolving when id to XMLName     * and checking it is not Uint32 index.     */    abstract void deleteXMLProperty(XMLName name);    /**     * Test XML equality with target the target.     */    abstract boolean equivalentXml(Object target);    // Methods from section 12.4.4 in the spec    abstract XML addNamespace(Namespace ns);    abstract XML appendChild(Object xml);    abstract XMLList attribute(XMLName xmlName);    abstract XMLList attributes();    abstract XMLList child(long index);    abstract XMLList child(XMLName xmlName);    abstract int childIndex();    abstract XMLList children();    abstract XMLList comments();    abstract boolean contains(Object xml);    abstract Object copy();    abstract XMLList descendants(XMLName xmlName);    abstract Object[] inScopeNamespaces();    abstract XML insertChildAfter(Object child, Object xml);    abstract XML insertChildBefore(Object child, Object xml);    abstract boolean hasOwnProperty(XMLName xmlName);    abstract boolean hasComplexContent();    abstract boolean hasSimpleContent();    abstract int length();    abstract String localName();    abstract QName name();    abstract Object namespace(String prefix);    abstract Object[] namespaceDeclarations();    abstract Object nodeKind();    abstract void normalize();    abstract Object parent();    abstract XML prependChild(Object xml);    abstract Object processingInstructions(XMLName xmlName);    abstract boolean propertyIsEnumerable(Object member);    abstract XML removeNamespace(Namespace ns);    abstract XML replace(long index, Object xml);    abstract XML replace(XMLName name, Object xml);    abstract XML setChildren(Object xml);    abstract void setLocalName(String name);    abstract void setName(QName xmlName);    abstract void setNamespace(Namespace ns);    abstract XMLList text();    public abstract String toString();    abstract String toSource(int indent);    abstract String toXMLString(int indent);    abstract Object valueOf();    /**     * Extension to access native implementation from scripts     */    abstract org.apache.xmlbeans.XmlObject getXmlObject();    protected abstract Object jsConstructor(Context cx, boolean inNewExpr,                                            Object[] args);    final Object getMethod(String id)    {        return super.get(id, this);    }    //    //    // Methods overriding ScriptableObject    //    //    public final Object getDefaultValue(Class hint)    {        return toString();    }    public void delete(String name)    {        throw new IllegalArgumentException("String: [" + name + "]");    }    /**     * XMLObject always compare with any value and equivalentValues     * never returns {@link Scriptable#NOT_FOUND} for them but rather     * calls equivalentXml(value) and wrap the result as Boolean.     */    protected final Object equivalentValues(Object value)    {        boolean result = equivalentXml(value);        return result ? Boolean.TRUE : Boolean.FALSE;    }    //    //    // Methods overriding XMLObject    //    //    public final XMLLib lib()    {        return lib;    }    /**     * Implementation of ECMAScript [[Has]]     */    public final boolean ecmaHas(Context cx, Object id)    {        if (cx == null) cx = Context.getCurrentContext();        XMLName xmlName = lib.toXMLNameOrIndex(cx, id);        if (xmlName == null) {            long index = ScriptRuntime.lastUint32Result(cx);            // XXX Fix this cast            return has((int)index, this);        }        return hasXMLProperty(xmlName);    }    /**     * Implementation of ECMAScript [[Get]]     */    public final Object ecmaGet(Context cx, Object id)    {        if (cx == null) cx = Context.getCurrentContext();        XMLName xmlName = lib.toXMLNameOrIndex(cx, id);        if (xmlName == null) {            long index = ScriptRuntime.lastUint32Result(cx);            // XXX Fix this cast            Object result = get((int)index, this);            if (result == Scriptable.NOT_FOUND) {                result = Undefined.instance;            }            return result;        }        return getXMLProperty(xmlName);    }    /**     * Implementation of ECMAScript [[Put]]     */    public final void ecmaPut(Context cx, Object id, Object value)    {        if (cx == null) cx = Context.getCurrentContext();        XMLName xmlName = lib.toXMLNameOrIndex(cx, id);        if (xmlName == null) {            long index = ScriptRuntime.lastUint32Result(cx);            // XXX Fix this cast            put((int)index, this, value);            return;        }        putXMLProperty(xmlName, value);    }    /**     * Implementation of ECMAScript [[Delete]].     */    public final boolean ecmaDelete(Context cx, Object id)    {        if (cx == null) cx = Context.getCurrentContext();        XMLName xmlName = lib.toXMLNameOrIndex(cx, id);        if (xmlName == null) {            long index = ScriptRuntime.lastUint32Result(cx);            // XXX Fix this            delete((int)index);            return true;        }        deleteXMLProperty(xmlName);        return true;    }    public Ref memberRef(Context cx, Object elem, int memberTypeFlags)    {        XMLName xmlName;        if ((memberTypeFlags & Node.ATTRIBUTE_FLAG) != 0) {            xmlName = lib.toAttributeName(cx, elem);        } else {            if ((memberTypeFlags & Node.DESCENDANTS_FLAG) == 0) {                // Code generation would use ecma(Get|Has|Delete|Set) for                // normal name idenrifiers so one ATTRIBUTE_FLAG                // or DESCENDANTS_FLAG has to be set                throw Kit.codeBug();            }            xmlName = lib.toXMLName(cx, elem);        }        if ((memberTypeFlags & Node.DESCENDANTS_FLAG) != 0) {            xmlName.setIsDescendants();        }        xmlName.initXMLObject(this);        return xmlName;    }    /**     * Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.     */    public Ref memberRef(Context cx, Object namespace, Object elem,                         int memberTypeFlags)    {        XMLName xmlName = lib.toQualifiedName(cx, namespace, elem);        if ((memberTypeFlags & Node.ATTRIBUTE_FLAG) != 0) {            if (!xmlName.isAttributeName()) {                xmlName.setAttributeName();            }        }        if ((memberTypeFlags & Node.DESCENDANTS_FLAG) != 0) {            xmlName.setIsDescendants();        }        xmlName.initXMLObject(this);        return xmlName;    }    public NativeWith enterWith(Scriptable scope)    {        return new XMLWithScope(lib, scope, this);    }    public NativeWith enterDotQuery(Scriptable scope)    {        XMLWithScope xws = new XMLWithScope(lib, scope, this);        xws.initAsDotQuery();        return xws;    }    public final Object addValues(Context cx, boolean thisIsLeft,                                     Object value)    {        if (value instanceof XMLObject) {            XMLObject v1, v2;            if (thisIsLeft) {                v1 = this;                v2 = (XMLObject)value;            } else {                v1 = (XMLObject)value;                v2 = this;            }            return lib.addXMLObjects(cx, v1, v2);        }        if (value == Undefined.instance) {            // both "xml + undefined" and "undefined + xml" gives String(xml)            return ScriptRuntime.toString(this);        }        return super.addValues(cx, thisIsLeft, value);    }    //    //    // IdScriptableObject machinery    //    //    final void exportAsJSClass(boolean sealed)    {        prototypeFlag = true;        exportAsJSClass(MAX_PROTOTYPE_ID, lib.globalScope(), sealed);    }// #string_id_map#    private final static int        Id_constructor             = 1,        Id_addNamespace            = 2,        Id_appendChild             = 3,        Id_attribute               = 4,        Id_attributes              = 5,        Id_child                   = 6,        Id_childIndex              = 7,        Id_children                = 8,        Id_comments                = 9,        Id_contains                = 10,        Id_copy                    = 11,        Id_descendants             = 12,        Id_inScopeNamespaces       = 13,        Id_insertChildAfter        = 14,        Id_insertChildBefore       = 15,        Id_hasOwnProperty          = 16,        Id_hasComplexContent       = 17,        Id_hasSimpleContent        = 18,        Id_length                  = 19,        Id_localName               = 20,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
94色蜜桃网一区二区三区| 99久久er热在这里只有精品66| 久久蜜桃一区二区| av不卡免费在线观看| 99国产精品久久久久| 亚瑟在线精品视频| 亚洲天堂免费看| 久久久久国产精品免费免费搜索| 欧美日精品一区视频| 国产成人免费在线| 秋霞影院一区二区| 亚洲综合清纯丝袜自拍| 国产精品久久99| 精品va天堂亚洲国产| 欧美高清视频在线高清观看mv色露露十八 | 久久精品99国产精品日本| 日韩理论片中文av| 国产清纯白嫩初高生在线观看91| 日韩欧美在线一区二区三区| 欧美专区日韩专区| 色综合视频一区二区三区高清| 国产精品18久久久久久久网站| 免费成人在线观看| 青青草原综合久久大伊人精品 | 日韩成人av影视| 一区二区三区影院| 亚洲欧洲av另类| 国产精品美女久久久久aⅴ| 精品国产91洋老外米糕| 日韩一区二区免费电影| 91精品国产一区二区| 欧美日韩另类一区| 欧美日韩小视频| 在线观看不卡一区| 在线观看国产日韩| 日本高清不卡视频| 欧美在线视频你懂得| 欧美在线免费观看亚洲| 91国偷自产一区二区三区观看| 色哟哟国产精品| 色婷婷综合久色| 一道本成人在线| 色综合色狠狠天天综合色| 91一区二区三区在线观看| 99国产精品视频免费观看| av影院午夜一区| 色94色欧美sute亚洲13| 91麻豆精品视频| 欧美视频在线观看一区二区| 欧美日韩精品一区二区天天拍小说| 欧美视频中文字幕| 欧美国产禁国产网站cc| 日本一区二区三区高清不卡| 国产精品丝袜久久久久久app| 欧美高清在线一区二区| 国产精品国产三级国产aⅴ无密码| 国产农村妇女精品| 中文字幕字幕中文在线中不卡视频| 亚洲精品中文在线影院| 亚洲一区二区中文在线| 日韩高清欧美激情| 看电视剧不卡顿的网站| 国产激情视频一区二区在线观看 | 91精品国产免费| 欧美精品一区二区三区蜜桃| 久久精品人人做人人爽人人| 国产精品视频麻豆| 亚洲黄色av一区| 美腿丝袜在线亚洲一区| 国产盗摄视频一区二区三区| 99久久综合精品| 欧美在线综合视频| 欧美mv和日韩mv国产网站| 日本一区二区视频在线观看| 一区二区三区欧美激情| 免费三级欧美电影| 99精品在线观看视频| 欧美精品1区2区3区| 国产女人aaa级久久久级| 亚洲成人一区在线| 国内精品国产三级国产a久久| 91亚洲国产成人精品一区二三| 欧美视频三区在线播放| 亚洲精品一区二区三区精华液| 中文字幕亚洲成人| 日本成人在线看| 91在线视频播放| 精品国产伦一区二区三区观看体验 | 美腿丝袜亚洲色图| 成人美女在线视频| 欧美性色aⅴ视频一区日韩精品| 欧美不卡在线视频| 亚洲欧美国产毛片在线| 久久99久国产精品黄毛片色诱| 丰满岳乱妇一区二区三区| 欧美精品高清视频| 国产精品免费丝袜| 蜜桃视频一区二区三区 | 欧美美女一区二区三区| 国产精品嫩草99a| 老司机午夜精品| 欧美在线一区二区| 国产精品久久久久一区二区三区| 日韩av电影天堂| 91黄色在线观看| 欧美国产97人人爽人人喊| 蜜乳av一区二区| 欧美日本一区二区三区四区| 秋霞成人午夜伦在线观看| 成人av免费网站| 久久久777精品电影网影网 | 99精品国产热久久91蜜凸| 91精品国产综合久久精品图片| 自拍偷拍欧美精品| 国v精品久久久网| 精品国产乱码久久久久久影片| 日韩av不卡一区二区| 色婷婷av一区| 亚洲精品精品亚洲| 成人综合激情网| 中文字幕免费不卡| 寂寞少妇一区二区三区| 日韩视频在线一区二区| 午夜av区久久| 欧美日韩成人综合天天影院 | 在线播放日韩导航| 亚洲一区二区三区四区在线 | 国产ts人妖一区二区| 精品捆绑美女sm三区| 日本vs亚洲vs韩国一区三区| 欧美日韩一区二区在线观看视频| 一区二区三区在线视频播放| 99精品偷自拍| 亚洲丝袜制服诱惑| 91麻豆免费视频| 一区二区三区在线视频免费 | 欧美成人福利视频| 久久精品久久99精品久久| 欧美一区二区三区在线电影 | 精品一区二区三区免费| 日韩欧美亚洲一区二区| 免费观看在线综合色| 日韩三级视频在线看| 韩国一区二区视频| 久久久亚洲午夜电影| 国产91丝袜在线观看| 国产精品无码永久免费888| 99久久精品国产观看| 国产精品初高中害羞小美女文| 99re这里都是精品| 一区二区免费看| 6080午夜不卡| 国产精品18久久久久久久久| 中文字幕乱码一区二区免费| 91小视频在线观看| 五月激情综合网| 精品理论电影在线| 成人18精品视频| 夜夜嗨av一区二区三区| 欧美精品一区在线观看| 成人免费毛片a| 亚洲午夜久久久| 日韩一级大片在线| 国产精品996| 亚洲欧美综合在线精品| 欧美男生操女生| 国产成人在线视频网址| 亚洲精品少妇30p| 日韩一区二区电影网| 粉嫩aⅴ一区二区三区四区 | 精品中文字幕一区二区| 中文成人av在线| 欧美日韩激情在线| 韩国v欧美v亚洲v日本v| 亚洲图片你懂的| 日韩亚洲国产中文字幕欧美| 国产成人精品午夜视频免费| 亚洲欧美日韩国产综合| 日韩精品一区二区三区四区视频| 国产91精品一区二区麻豆亚洲| 一区二区三区.www| 久久九九国产精品| 欧美日韩aaaaa| www.亚洲国产| 日本成人在线看| 亚洲美女区一区| 久久影院午夜论| 欧美色老头old∨ideo| 国产91精品久久久久久久网曝门| 污片在线观看一区二区| 欧美激情艳妇裸体舞| 69久久99精品久久久久婷婷| 91在线视频观看| 国产一二精品视频| 丝袜诱惑制服诱惑色一区在线观看 | 精品亚洲免费视频| 亚洲人午夜精品天堂一二香蕉| 日韩精品一区二区三区中文精品| 色综合欧美在线视频区| 国产成人在线影院|