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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? classcache.java

?? 主要的怎么樣結(jié)合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, 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, igor@fastmail.fm * * 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.util.Hashtable;/** * Cache of generated classes and data structures to access Java runtime * from JavaScript. * * @author Igor Bukanov * * @since Rhino 1.5 Release 5 */public class ClassCache{    private static final Object AKEY = new Object();    private volatile boolean cachingIsEnabled = true;    Hashtable classTable = new Hashtable();    Hashtable javaAdapterGeneratedClasses = new Hashtable();    ScriptableObject scope;    private Hashtable interfaceAdapterCache;    private int generatedClassSerial;    /**     * Search for ClassCache object in the given scope.     * The method first calls     * {@link ScriptableObject#getTopLevelScope(Scriptable scope)}     * to get the top most scope and then tries to locate associated     * ClassCache object in the prototype chain of the top scope.     *     * @param scope scope to search for ClassCache object.     * @return previously associated ClassCache object or a new instance of     *         ClassCache if no ClassCache object was found.     *     * @see #associate(ScriptableObject topScope)     */    public static ClassCache get(Scriptable scope)    {        ClassCache cache;        cache = (ClassCache)ScriptableObject.getTopScopeValue(scope, AKEY);        if (cache == null) {            // XXX warn somehow about wrong cache usage ?            cache = new ClassCache();        }        return cache;    }    /**     * Associate ClassCache object with the given top-level scope.     * The ClassCache object can only be associated with the given scope once.     *     * @param topScope scope to associate this ClassCache object with.     * @return true if no prevous ClassCache objects were embedded into     *         the scope and this ClassCache were successfully associated     *         or false otherwise.     *     * @see #get(Scriptable scope)     */    public boolean associate(ScriptableObject topScope)    {        if (topScope.getParentScope() != null) {            // Can only associate cache with top level scope            throw new IllegalArgumentException();        }        if(this == topScope.associateValue(AKEY, this)) {            scope = topScope;            return true;        }        return false;    }    /**     * Empty caches of generated Java classes and Java reflection information.     */    public synchronized void clearCaches()    {        classTable = new Hashtable();        javaAdapterGeneratedClasses = new Hashtable();        interfaceAdapterCache = null;    }    /**     * Check if generated Java classes and Java reflection information     * is cached.     */    public final boolean isCachingEnabled()    {        return cachingIsEnabled;    }     /**     * Set whether to cache some values.     * <p>     * By default, the engine will cache the results of     * <tt>Class.getMethods()</tt> and similar calls.     * This can speed execution dramatically, but increases the memory     * footprint. Also, with caching enabled, references may be held to     * objects past the lifetime of any real usage.     * <p>     * If caching is enabled and this method is called with a     * <code>false</code> argument, the caches will be emptied.     * <p>     * Caching is enabled by default.     *     * @param enabled if true, caching is enabled     *     * @see #clearCaches()     */    public synchronized void setCachingEnabled(boolean enabled)    {        if (enabled == cachingIsEnabled)            return;        if (!enabled)            clearCaches();        cachingIsEnabled = enabled;    }    /**     * @deprecated     * The method always returns false.     * @see #setInvokerOptimizationEnabled(boolean enabled)     */    public boolean isInvokerOptimizationEnabled()    {        return false;    }    /**     * @deprecated     * The method does nothing.     * Invoker optimization is no longer used by Rhino.     * On modern JDK like 1.4 or 1.5 the disadvatages of the optimization     * like incresed memory usage or longer initialization time overweight     * small speed increase that can be gained using generated proxy class     * to replace reflection.     */    public synchronized void setInvokerOptimizationEnabled(boolean enabled)    {    }    /**     * Internal engine method to return serial number for generated classes     * to ensure name uniqueness.     */    public final synchronized int newClassSerialNumber()    {        return ++generatedClassSerial;    }    Object getInterfaceAdapter(Class cl)    {        Object result;        Hashtable cache = interfaceAdapterCache;        if (cache == null) {            result = null;        } else {            result = cache.get(cl);        }        return result;    }    synchronized void cacheInterfaceAdapter(Class cl, Object iadapter)    {        if (cachingIsEnabled) {            if (interfaceAdapterCache == null) {                interfaceAdapterCache = new Hashtable();            }            interfaceAdapterCache.put(cl, iadapter);        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久这里只精品最新地址| 国产精品毛片无遮挡高清| 精品在线一区二区| 日本一区二区免费在线| 在线观看一区日韩| 麻豆精品国产91久久久久久| 国产亲近乱来精品视频| 欧美图片一区二区三区| 国产综合久久久久影院| 亚洲美女淫视频| 久久久久国产精品麻豆ai换脸| 99久久99久久精品免费观看| 天天影视网天天综合色在线播放| 国产日韩精品一区二区三区| 欧美手机在线视频| av亚洲精华国产精华精华| 三级一区在线视频先锋| 亚洲欧美中日韩| 久久日韩粉嫩一区二区三区| 91精品国产色综合久久ai换脸| 一本色道久久综合亚洲aⅴ蜜桃 | 国产精品视频看| 日韩一区二区三区视频| 一本大道av伊人久久综合| 国产成人精品午夜视频免费| 国产综合久久久久影院| 美女视频黄 久久| 日韩精品视频网站| 丝袜亚洲另类欧美综合| 亚洲国产综合色| 亚洲444eee在线观看| 欧美96一区二区免费视频| 蜜桃视频在线一区| 久久成人免费网| 成人一道本在线| 色狠狠一区二区三区香蕉| 99re免费视频精品全部| 制服视频三区第一页精品| 91麻豆精品国产91久久久久久久久| 欧美高清视频www夜色资源网| 欧美一区二区人人喊爽| 久久久久国产免费免费| 亚洲伦理在线免费看| 日韩成人免费电影| 成人深夜视频在线观看| 欧美欧美欧美欧美| 国产日韩欧美高清在线| 一卡二卡欧美日韩| 国产一区二区不卡| 欧美日韩国产另类一区| 久久综合狠狠综合久久激情 | 精品1区2区在线观看| 中文字幕一区二区三区蜜月 | 免费成人在线视频观看| 色综合视频在线观看| 久久婷婷国产综合精品青草| 一区二区三区丝袜| 99久久免费视频.com| 精品久久久久久亚洲综合网| 精品国产免费一区二区三区四区| 国产蜜臀av在线一区二区三区| 午夜电影网一区| 色综合天天综合网国产成人综合天 | 日韩精品欧美成人高清一区二区| 在线观看欧美日本| 亚洲精品国产a| 成人动漫一区二区在线| 精品国产污污免费网站入口| 一区二区三区免费网站| 99re这里都是精品| 中文字幕成人网| 久久99精品久久只有精品| 欧美裸体一区二区三区| 亚洲精品免费在线播放| 欧美午夜精品一区二区蜜桃| 日韩av中文字幕一区二区三区| 日韩一区二区三区电影| 99re在线视频这里只有精品| 亚洲成a人v欧美综合天堂| 日韩精品中文字幕在线一区| 国产一区二区日韩精品| 国产精品毛片大码女人| 在线国产亚洲欧美| 久久国产精品99久久人人澡| 久久九九久久九九| 欧美夫妻性生活| 91久久线看在观草草青青 | 精品一区二区免费看| 日韩主播视频在线| 亚洲在线一区二区三区| 26uuu精品一区二区| 欧美男男青年gay1069videost| 豆国产96在线|亚洲| 性欧美大战久久久久久久久| 国产欧美一区在线| 欧美一区二区三区免费在线看| 国产成人在线看| 日本在线不卡视频一二三区| 亚洲精品中文在线观看| 欧美激情一区二区| 欧美大片在线观看一区| 高清不卡一区二区| 亚洲一二三区视频在线观看| 国产欧美va欧美不卡在线| 26uuu国产电影一区二区| 欧美人妇做爰xxxⅹ性高电影 | 国产乱码精品一区二区三| 亚洲国产精品一区二区久久恐怖片| 欧美不卡激情三级在线观看| 欧美日韩亚洲另类| 欧美一区二区三区视频在线观看| 日韩一区二区麻豆国产| 久久婷婷久久一区二区三区| 亚洲免费观看高清完整| 男男gaygay亚洲| 色综合天天视频在线观看| 欧美一区二区三区四区视频| 久久久久久电影| 国产午夜亚洲精品不卡| 国产精品国产馆在线真实露脸| 中文字幕国产一区| 午夜精品久久久久久久久久久| 天堂成人免费av电影一区| 日韩中文字幕91| 成人午夜激情视频| 欧美在线视频全部完| 日韩欧美不卡在线观看视频| 国产女同互慰高潮91漫画| 亚洲精品网站在线观看| 奇米影视一区二区三区小说| 不卡区在线中文字幕| 精品视频一区三区九区| 日韩免费高清av| 一区二区三区资源| 国产成人精品免费网站| 欧美日韩一区小说| 欧美日韩一区二区三区在线| 2023国产精华国产精品| 一二三四社区欧美黄| 韩国女主播一区二区三区| 欧美无人高清视频在线观看| 中文字幕不卡在线播放| 日韩—二三区免费观看av| eeuss国产一区二区三区| 久久婷婷国产综合国色天香| 另类专区欧美蜜桃臀第一页| 91国内精品野花午夜精品| 国产精品嫩草影院av蜜臀| 精品一区二区免费| 欧美大度的电影原声| 日韩有码一区二区三区| 欧美乱熟臀69xxxxxx| 午夜精品久久久久久| 欧美日韩一区不卡| 丝袜诱惑制服诱惑色一区在线观看 | 国产综合色视频| 中文字幕第一页久久| 成人开心网精品视频| 国产女人18毛片水真多成人如厕| 国产精品一区二区不卡| 国产精品午夜电影| 色天使色偷偷av一区二区| 午夜免费久久看| 日韩一区二区在线观看| 国产一区二区三区在线观看免费| 久久品道一品道久久精品| 成人av在线资源网站| 亚洲一区二区在线播放相泽| 欧美精品日日鲁夜夜添| 国产尤物一区二区| 亚洲精品美腿丝袜| 26uuuu精品一区二区| 欧美丝袜丝交足nylons| 国产91精品一区二区麻豆亚洲| 亚洲人一二三区| 日韩精品一区二区三区视频播放 | 日韩高清中文字幕一区| 日本一区二区三区高清不卡| 欧美亚洲国产一区二区三区va| 久久黄色级2电影| 亚洲一区二区三区三| 国产亚洲精品超碰| 日韩午夜在线播放| 欧美男男青年gay1069videost| 91亚洲精品久久久蜜桃网站 | 一区二区三区不卡在线观看| 欧美国产激情一区二区三区蜜月| 91精品国产一区二区三区 | 成人国产一区二区三区精品| 美女一区二区在线观看| 亚洲一区二区三区四区在线观看 | 2020国产精品自拍| 久久综合九色综合久久久精品综合 | 欧美精品一区二区三区蜜桃 | 美女精品一区二区| 人妖欧美一区二区| 久88久久88久久久| 狠狠狠色丁香婷婷综合激情| 蜜臀久久99精品久久久久宅男| 日韩av不卡在线观看|