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

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

?? idscriptableobject.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* -*- Mode: java; tab-width: 4; indent-tabs-mode: 1; 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-1999 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;import java.io.*;/**Base class for native object implementation that uses IdFunctionObject to export its methods to script via <class-name>.prototype object.Any descendant should implement at least the following methods:    findInstanceIdInfo    getInstanceIdName    execIdCall    methodArityTo define non-function properties, the descendant should override    getInstanceIdValue    setInstanceIdValueto get/set property value and provide its default attributes.To customize initializition of constructor and protype objects, descendantmay override scopeInit or fillConstructorProperties methods.*/public abstract class IdScriptableObject extends ScriptableObject    implements IdFunctionCall{    private transient volatile PrototypeValues prototypeValues;    private static final class PrototypeValues implements Serializable    {        static final long serialVersionUID = 3038645279153854371L;        private static final int VALUE_SLOT = 0;        private static final int NAME_SLOT = 1;        private static final int SLOT_SPAN = 2;        private IdScriptableObject obj;        private Object tag;        private int maxId;        private volatile Object[] valueArray;        private volatile short[] attributeArray;        private volatile int lastFoundId = 1;        // The following helps to avoid creation of valueArray during runtime        // initialization for common case of "constructor" property        int constructorId;        private IdFunctionObject constructor;        private short constructorAttrs;        PrototypeValues(IdScriptableObject obj, int maxId)        {            if (obj == null) throw new IllegalArgumentException();            if (maxId < 1) throw new IllegalArgumentException();            this.obj = obj;            this.maxId = maxId;        }        final int getMaxId()        {            return maxId;        }        final void initValue(int id, String name, Object value, int attributes)        {            if (!(1 <= id && id <= maxId))                throw new IllegalArgumentException();            if (name == null)                throw new IllegalArgumentException();            if (value == NOT_FOUND)                throw new IllegalArgumentException();            ScriptableObject.checkValidAttributes(attributes);            if (obj.findPrototypeId(name) != id)                throw new IllegalArgumentException(name);            if (id == constructorId) {                if (!(value instanceof IdFunctionObject)) {                    throw new IllegalArgumentException("consructor should be initialized with IdFunctionObject");                }                constructor = (IdFunctionObject)value;                constructorAttrs = (short)attributes;                return;            }            initSlot(id, name, value, attributes);        }        private void initSlot(int id, String name, Object value,                              int attributes)        {            Object[] array = valueArray;            if (array == null)                throw new IllegalStateException();            if (value == null) {                value = UniqueTag.NULL_VALUE;            }            int index = (id - 1) * SLOT_SPAN;            synchronized (this) {                Object value2 = array[index + VALUE_SLOT];                if (value2 == null) {                    array[index + VALUE_SLOT] = value;                    array[index + NAME_SLOT] = name;                    attributeArray[id - 1] = (short)attributes;                } else {                    if (!name.equals(array[index + NAME_SLOT]))                         throw new IllegalStateException();                }            }        }        final IdFunctionObject createPrecachedConstructor()        {            if (constructorId != 0) throw new IllegalStateException();            constructorId = obj.findPrototypeId("constructor");            if (constructorId == 0) {                throw new IllegalStateException(                    "No id for constructor property");            }            obj.initPrototypeId(constructorId);            if (constructor == null) {                throw new IllegalStateException(                    obj.getClass().getName()+".initPrototypeId() did not "                    +"initialize id="+constructorId);            }            constructor.initFunction(obj.getClassName(),                                     ScriptableObject.getTopLevelScope(obj));            constructor.markAsConstructor(obj);            return constructor;        }        final int findId(String name)        {            Object[] array = valueArray;            if (array == null) {                return obj.findPrototypeId(name);            }            int id = lastFoundId;            if (name == array[(id - 1) * SLOT_SPAN + NAME_SLOT]) {                return id;            }            id = obj.findPrototypeId(name);            if (id != 0) {                int nameSlot = (id - 1) * SLOT_SPAN + NAME_SLOT;                // Make cache to work!                array[nameSlot] = name;                lastFoundId = id;            }            return id;        }        final boolean has(int id)        {            Object[] array = valueArray;            if (array == null) {                // Not yet initialized, assume all exists                return true;            }            int valueSlot = (id  - 1) * SLOT_SPAN + VALUE_SLOT;            Object value = array[valueSlot];            if (value == null) {                // The particular entry has not been yet initialized                return true;            }            return value != NOT_FOUND;        }        final Object get(int id)        {            Object value = ensureId(id);            if (value == UniqueTag.NULL_VALUE) {                value = null;            }            return value;        }        final void set(int id, Scriptable start, Object value)        {            if (value == NOT_FOUND) throw new IllegalArgumentException();            ensureId(id);            int attr = attributeArray[id - 1];            if ((attr & READONLY) == 0) {                if (start == obj) {                    if (value == null) {                        value = UniqueTag.NULL_VALUE;                    }                    int valueSlot = (id  - 1) * SLOT_SPAN + VALUE_SLOT;                    synchronized (this) {                        valueArray[valueSlot] = value;                    }                }                else {                    int nameSlot = (id  - 1) * SLOT_SPAN + NAME_SLOT;                    String name = (String)valueArray[nameSlot];                    start.put(name, start, value);                }            }        }        final void delete(int id)        {            ensureId(id);            int attr = attributeArray[id - 1];            if ((attr & PERMANENT) == 0) {                int valueSlot = (id  - 1) * SLOT_SPAN + VALUE_SLOT;                synchronized (this) {                    valueArray[valueSlot] = NOT_FOUND;                    attributeArray[id - 1] = EMPTY;                }            }        }        final int getAttributes(int id)        {            ensureId(id);            return attributeArray[id - 1];        }        final void setAttributes(int id, int attributes)        {            ScriptableObject.checkValidAttributes(attributes);            ensureId(id);            synchronized (this) {                attributeArray[id - 1] = (short)attributes;            }        }        final Object[] getNames(boolean getAll, Object[] extraEntries)        {            Object[] names = null;            int count = 0;            for (int id = 1; id <= maxId; ++id) {                Object value = ensureId(id);                if (getAll || (attributeArray[id - 1] & DONTENUM) == 0) {                    if (value != NOT_FOUND) {                        int nameSlot = (id  - 1) * SLOT_SPAN + NAME_SLOT;                        String name = (String)valueArray[nameSlot];                        if (names == null) {                            names = new Object[maxId];                        }                        names[count++] = name;                    }                }            }            if (count == 0) {                return extraEntries;            } else if (extraEntries == null || extraEntries.length == 0) {                if (count != names.length) {                    Object[] tmp = new Object[count];                    System.arraycopy(names, 0, tmp, 0, count);                    names = tmp;                }                return names;            } else {                int extra = extraEntries.length;                Object[] tmp = new Object[extra + count];                System.arraycopy(extraEntries, 0, tmp, 0, extra);                System.arraycopy(names, 0, tmp, extra, count);                return tmp;            }        }        private Object ensureId(int id)        {            Object[] array = valueArray;            if (array == null) {                synchronized (this) {                    array = valueArray;                    if (array == null) {                        array = new Object[maxId * SLOT_SPAN];                        valueArray = array;                        attributeArray = new short[maxId];                    }                }            }            int valueSlot = (id  - 1) * SLOT_SPAN + VALUE_SLOT;            Object value = array[valueSlot];            if (value == null) {                if (id == constructorId) {                    initSlot(constructorId, "constructor",                             constructor, constructorAttrs);                    constructor = null; // no need to refer it any longer                } else {                    obj.initPrototypeId(id);                }                value = array[valueSlot];                if (value == null) {                    throw new IllegalStateException(                        obj.getClass().getName()+".initPrototypeId(int id) "                        +"did not initialize id="+id);                }            }            return value;        }    }    public IdScriptableObject()    {    }    public IdScriptableObject(Scriptable scope, Scriptable prototype)    {        super(scope, prototype);    }    protected final Object defaultGet(String name)    {        return super.get(name, this);    }    protected final void defaultPut(String name, Object value)    {        super.put(name, this, value);    }    public boolean has(String name, Scriptable start)    {        int info = findInstanceIdInfo(name);        if (info != 0) {            int attr = (info >>> 16);            if ((attr & PERMANENT) != 0) {                return true;            }            int id = (info & 0xFFFF);            return NOT_FOUND != getInstanceIdValue(id);        }        if (prototypeValues != null) {            int id = prototypeValues.findId(name);            if (id != 0) {                return prototypeValues.has(id);            }        }        return super.has(name, start);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美va亚洲va在线观看蝴蝶网| 国产九色sp调教91| 国产精品久久久久影院亚瑟 | 91片黄在线观看| 韩国av一区二区三区四区| 日韩avvvv在线播放| 视频一区在线播放| 日本成人在线网站| 蜜臀91精品一区二区三区| 久久精品免费观看| 久久99国内精品| 丁香网亚洲国际| av一区二区三区| 欧美天堂亚洲电影院在线播放| 色综合夜色一区| 一本色道久久综合精品竹菊| 91蝌蚪国产九色| 欧美美女直播网站| 精品国产3级a| 中文字幕成人网| 一区二区三区 在线观看视频 | 亚洲男同性恋视频| 中文字幕一区免费在线观看| 18成人在线视频| 三级不卡在线观看| 国产激情精品久久久第一区二区 | 亚洲一区在线观看免费观看电影高清| 一区二区国产盗摄色噜噜| 日韩专区欧美专区| 福利一区在线观看| 欧洲av一区二区嗯嗯嗯啊| 精品999在线播放| 中文字幕免费不卡| 日韩和欧美一区二区| 国产一区二三区好的| 色丁香久综合在线久综合在线观看| 91精品国产高清一区二区三区蜜臀 | 亚洲你懂的在线视频| 夜夜夜精品看看| 韩国精品在线观看| 日韩久久免费av| 亚洲综合图片区| 精品成人一区二区三区四区| 久久精品一区二区三区四区| 亚洲精品一二三| 寂寞少妇一区二区三区| 在线视频欧美精品| 久久综合色8888| 日韩精品成人一区二区三区| 成人天堂资源www在线| 欧美妇女性影城| 亚洲精品老司机| 成人一区二区三区视频在线观看| 911精品国产一区二区在线| 国产片一区二区| 国产主播一区二区三区| 欧美美女直播网站| 一区二区三区四区乱视频| 国产大陆精品国产| 欧美一级xxx| 一区二区三区毛片| 色婷婷激情综合| 国产精品久线观看视频| 国产成人av电影在线| 精品日韩一区二区三区| 视频一区在线播放| 欧美福利一区二区| 婷婷国产v国产偷v亚洲高清| 91视频com| 亚洲女女做受ⅹxx高潮| 99免费精品在线观看| 中文子幕无线码一区tr| 大桥未久av一区二区三区中文| 91精品免费观看| 丝袜美腿亚洲一区| 欧美一区二区三区四区视频| 午夜精品123| 欧美日韩成人在线| 三级久久三级久久| 日韩限制级电影在线观看| 午夜激情久久久| 日韩欧美一二三| 九色porny丨国产精品| 精品免费日韩av| 国产高清不卡一区| 亚洲视频在线观看三级| av中文字幕在线不卡| 亚洲色图制服丝袜| 欧美亚洲国产一区在线观看网站| 一区二区三区蜜桃| 日韩亚洲欧美成人一区| 国产福利一区二区三区视频在线| 中文字幕第一页久久| av电影在线不卡| 亚洲一二三区不卡| 日韩一二三区视频| 成人三级伦理片| 亚洲欧美日韩人成在线播放| 欧美日韩国产在线播放网站| 久久成人精品无人区| 国产精品久99| 91精品欧美久久久久久动漫| 福利电影一区二区| 成人免费一区二区三区视频| 在线免费亚洲电影| 久久精品国产亚洲高清剧情介绍| 久久网站最新地址| 欧美亚洲综合网| 韩国午夜理伦三级不卡影院| 国产精品不卡在线| 日韩三级视频在线观看| 国产高清视频一区| 夜夜揉揉日日人人青青一国产精品| 欧美一区二区视频在线观看2022 | 69堂成人精品免费视频| 狠狠久久亚洲欧美| 亚洲综合色区另类av| 2021中文字幕一区亚洲| 91九色最新地址| 国产精品自拍毛片| 日本中文字幕一区二区有限公司| 国产精品久久久一区麻豆最新章节| 这里只有精品电影| 91农村精品一区二区在线| 久久国产夜色精品鲁鲁99| 亚洲免费观看高清完整版在线观看 | 亚洲视频在线观看三级| 日韩精品一区二区三区视频在线观看| www.亚洲色图.com| 美美哒免费高清在线观看视频一区二区 | 欧美精品丝袜中出| 91色porny| 国产成人夜色高潮福利影视| 亚洲欧美日本在线| 国产精品网站在线观看| 日韩欧美亚洲一区二区| 欧美嫩在线观看| 日本乱人伦一区| 91麻豆免费看| 国产福利一区在线观看| 久久福利资源站| 日本中文字幕不卡| 天天av天天翘天天综合网| 亚洲激情成人在线| 一区二区三区欧美在线观看| 国产精品热久久久久夜色精品三区| 欧美变态口味重另类| 日韩精品中文字幕在线不卡尤物| 欧美网站一区二区| 欧美最猛性xxxxx直播| 色综合久久88色综合天天免费| 成人综合在线观看| 成人性视频网站| 成人黄色片在线观看| www.亚洲激情.com| 成人高清在线视频| www.欧美色图| www.视频一区| 在线视频欧美区| 欧美日韩国产首页| 欧美精品视频www在线观看| 在线成人免费观看| 欧美成人精品1314www| 337p日本欧洲亚洲大胆精品| 国产三区在线成人av| 亚洲国产成人私人影院tom| 亚洲三级理论片| 亚洲国产aⅴ天堂久久| 日本欧美在线看| 精品在线一区二区| 成人国产亚洲欧美成人综合网| 丁香啪啪综合成人亚洲小说| av爱爱亚洲一区| 在线观看亚洲一区| 日韩午夜小视频| 国产精品免费aⅴ片在线观看| 亚洲色图视频免费播放| 亚洲一区二区偷拍精品| 免费在线一区观看| 国产91在线观看| 欧洲av一区二区嗯嗯嗯啊| 欧美精品 日韩| 国产喂奶挤奶一区二区三区| **网站欧美大片在线观看| 亚洲已满18点击进入久久| 中文字幕在线观看不卡视频| 91精品久久久久久蜜臀| 91在线码无精品| 538prom精品视频线放| 久久精品日产第一区二区三区高清版| 亚洲国产成人在线| 午夜成人在线视频| 国产成人在线视频免费播放| 欧美亚洲综合另类| 欧美国产精品专区| 日韩成人免费电影| 99久久免费精品| 欧美成人福利视频| 亚洲综合在线视频| 成人性生交大片免费看视频在线 |