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

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

?? wrapfactory.java

?? 主要的怎么樣結(jié)合java 和 javascript!
?? JAVA
字號(hào):
/* -*- 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): * Norris Boyd * 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. */// API classpackage org.mozilla.javascript;/** * Embeddings that wish to provide their own custom wrappings for Java * objects may extend this class and call * {@link Context#setWrapFactory(WrapFactory)} * Once an instance of this class or an extension of this class is enabled * for a given context (by calling setWrapFactory on that context), Rhino * will call the methods of this class whenever it needs to wrap a value * resulting from a call to a Java method or an access to a Java field. * * @see org.mozilla.javascript.Context#setWrapFactory(WrapFactory) * @since 1.5 Release 4 */public class WrapFactory{    /**     * Wrap the object.     * <p>     * The value returned must be one of     * <UL>     * <LI>java.lang.Boolean</LI>     * <LI>java.lang.String</LI>     * <LI>java.lang.Number</LI>     * <LI>org.mozilla.javascript.Scriptable objects</LI>     * <LI>The value returned by Context.getUndefinedValue()</LI>     * <LI>null</LI>     * </UL>     * @param cx the current Context for this thread     * @param scope the scope of the executing script     * @param obj the object to be wrapped. Note it can be null.     * @param staticType type hint. If security restrictions prevent to wrap              object based on its class, staticType will be used instead.     * @return the wrapped value.     */    public Object wrap(Context cx, Scriptable scope,                       Object obj, Class staticType)    {        if (obj == null || obj == Undefined.instance            || obj instanceof Scriptable)        {            return obj;        }        if (staticType != null && staticType.isPrimitive()) {            if (staticType == Void.TYPE)                return Undefined.instance;            if (staticType == Character.TYPE)                return new Integer((int) ((Character) obj).charValue());            return obj;        }        if (!isJavaPrimitiveWrap()) {            if (obj instanceof String || obj instanceof Number                || obj instanceof Boolean)            {                return obj;            } else if (obj instanceof Character) {                return String.valueOf(((Character)obj).charValue());            }        }        Class cls = obj.getClass();        if (cls.isArray()) {            return NativeJavaArray.wrap(scope, obj);        }        return wrapAsJavaObject(cx, scope, obj, staticType);    }    /**     * Wrap an object newly created by a constructor call.     * @param cx the current Context for this thread     * @param scope the scope of the executing script     * @param obj the object to be wrapped     * @return the wrapped value.     */    public Scriptable wrapNewObject(Context cx, Scriptable scope, Object obj)    {        if (obj instanceof Scriptable) {            return (Scriptable)obj;        }        Class cls = obj.getClass();        if (cls.isArray()) {            return NativeJavaArray.wrap(scope, obj);        }        return wrapAsJavaObject(cx, scope, obj, null);    }    /**     * Wrap Java object as Scriptable instance to allow full access to its     * methods and fields from JavaScript.     * <p>     * {@link #wrap(Context, Scriptable, Object, Class)} and     * {@link #wrapNewObject(Context, Scriptable, Object)} call this method     * when they can not convert <tt>javaObject</tt> to JavaScript primitive     * value or JavaScript array.     * <p>     * Subclasses can override the method to provide custom wrappers     * for Java objects.     * @param cx the current Context for this thread     * @param scope the scope of the executing script     * @param javaObject the object to be wrapped     * @param staticType type hint. If security restrictions prevent to wrap                object based on its class, staticType will be used instead.     * @return the wrapped value which shall not be null     */    public Scriptable wrapAsJavaObject(Context cx, Scriptable scope,                                       Object javaObject, Class staticType)    {        Scriptable wrap;        wrap = new NativeJavaObject(scope, javaObject, staticType);        return wrap;    }    /**     * Return <code>false</code> if result of Java method, which is instance of     * <code>String</code>, <code>Number</code>, <code>Boolean</code> and     * <code>Character</code>, should be used directly as JavaScript primitive     * type.     * By default the method returns true to indicate that instances of     * <code>String</code>, <code>Number</code>, <code>Boolean</code> and     * <code>Character</code> should be wrapped as any other Java object and     * scripts can access any Java method available in these objects.     * Use {@link #setJavaPrimitiveWrap(boolean)} to change this.     */    public final boolean isJavaPrimitiveWrap()    {        return javaPrimitiveWrap;    }    /**     * @see #isJavaPrimitiveWrap()     */    public final void setJavaPrimitiveWrap(boolean value)    {        Context cx = Context.getCurrentContext();        if (cx != null && cx.isSealed()) {            Context.onSealedMutation();        }        javaPrimitiveWrap = value;    }    private boolean javaPrimitiveWrap = true;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品三级久久久久三级| 一本色道**综合亚洲精品蜜桃冫| 7777女厕盗摄久久久| 亚洲精品视频一区二区| 色狠狠色狠狠综合| 亚洲网友自拍偷拍| 欧美一区二区精品久久911| 久久狠狠亚洲综合| 国产欧美精品一区二区色综合| 成人一区二区三区视频| 亚洲男人天堂一区| 欧美日韩国产一区| 精品夜夜嗨av一区二区三区| 国产女人水真多18毛片18精品视频| 国产成人免费网站| 亚洲欧美精品午睡沙发| 欧美精品乱码久久久久久| 免费高清视频精品| 国产精品国产精品国产专区不蜜| 欧美亚州韩日在线看免费版国语版| 午夜精品123| 精品成人私密视频| 91丨九色丨国产丨porny| 婷婷国产v国产偷v亚洲高清| 久久香蕉国产线看观看99| 99精品热视频| 蜜桃av一区二区三区电影| 国产精品久久午夜夜伦鲁鲁| 欧美在线一区二区| 老司机精品视频导航| 中文字幕一区二区不卡| 91精品国产麻豆国产自产在线 | 亚洲国产岛国毛片在线| 91免费视频大全| 美女视频黄a大片欧美| 国产欧美日韩在线看| 欧美人狂配大交3d怪物一区| 国产成人午夜精品5599| 亚洲成av人在线观看| 久久精品一区二区| 欧美日韩日日夜夜| 99久久伊人网影院| 久久国产综合精品| 亚洲二区视频在线| 国产精品久久久久久久第一福利| 91 com成人网| 日本黄色一区二区| 国产成人精品aa毛片| 三级影片在线观看欧美日韩一区二区 | 91美女视频网站| 国产中文字幕一区| 天天综合网天天综合色| 中文字幕一区二区三| 久久综合久久综合久久| 欧美精品高清视频| 91久久精品国产91性色tv| 国产夫妻精品视频| 精品一区二区三区视频| 日韩电影在线一区| 亚洲国产精品视频| 一区二区三区在线视频播放| 国产欧美日韩另类视频免费观看| 日韩一区二区免费视频| 欧美撒尿777hd撒尿| 91国在线观看| 一本色道久久加勒比精品| 成人国产亚洲欧美成人综合网| 国产美女在线观看一区| 成人性生交大片免费看中文| 久久精工是国产品牌吗| 日本午夜精品视频在线观看| 亚洲电影中文字幕在线观看| 亚洲男人的天堂一区二区| 中文字幕一区二区三区在线观看| 国产欧美日韩综合| 亚洲国产精品二十页| 欧美国产精品一区二区| 欧美高清在线一区二区| 国产精品污www在线观看| 国产精品视频一二三| 国产精品传媒视频| 亚洲男人的天堂网| 一区二区在线免费观看| 一区二区三区欧美视频| 午夜精品爽啪视频| 久久国产精品一区二区| 国产最新精品精品你懂的| 国产乱一区二区| 成人国产精品免费网站| eeuss国产一区二区三区| 99re视频这里只有精品| 91国偷自产一区二区三区观看| 欧美怡红院视频| 欧美另类久久久品| 精品少妇一区二区三区免费观看 | 日韩欧美一级在线播放| 精品日本一线二线三线不卡| 亚洲精品一区二区三区在线观看 | 久久精品国产77777蜜臀| 亚洲大片在线观看| 六月丁香综合在线视频| 国产在线精品一区二区不卡了| 国产精品亚洲第一区在线暖暖韩国| 成人久久18免费网站麻豆| 色婷婷久久99综合精品jk白丝| 欧美女孩性生活视频| 精品精品国产高清一毛片一天堂| 国产视频一区二区三区在线观看| 亚洲日本乱码在线观看| 秋霞电影网一区二区| 日本福利一区二区| 日韩欧美一区电影| 综合av第一页| 日本视频中文字幕一区二区三区| 国产馆精品极品| 欧美性大战xxxxx久久久| 精品成人一区二区| 亚洲影院在线观看| 国产剧情一区在线| 欧美日韩免费观看一区二区三区| 欧美成人aa大片| 亚洲女同一区二区| 国产在线观看一区二区| 在线亚洲精品福利网址导航| 2024国产精品| 亚洲一区在线观看免费观看电影高清| 美国欧美日韩国产在线播放| 99国产精品久久久久| 欧美一级欧美一级在线播放| 亚洲欧洲精品一区二区精品久久久| 婷婷开心久久网| 91首页免费视频| 国产日韩欧美综合一区| 日韩成人精品在线| 91久久久免费一区二区| 国产精品情趣视频| 国内精品久久久久影院色| 91成人免费在线视频| 国产精品日日摸夜夜摸av| 老司机精品视频在线| 欧美日韩午夜在线| 亚洲老妇xxxxxx| 成人免费视频网站在线观看| 欧美变态凌虐bdsm| 日韩不卡在线观看日韩不卡视频| 91在线国内视频| 国产精品污www在线观看| 国产精品亚洲成人| 精品999在线播放| 日韩电影在线看| 欧美日韩国产免费一区二区 | 亚洲一区二区视频在线| 成人精品免费看| 久久精品水蜜桃av综合天堂| 美女诱惑一区二区| 欧美美女黄视频| 五月天网站亚洲| 欧美日韩视频在线观看一区二区三区| 中文字幕亚洲区| 懂色av噜噜一区二区三区av| 久久综合国产精品| 精品午夜一区二区三区在线观看| 日韩欧美在线观看一区二区三区| 午夜日韩在线观看| 欧美巨大另类极品videosbest | 91精品国产综合久久精品| 亚洲一区在线观看免费| 日本高清无吗v一区| 亚洲码国产岛国毛片在线| 91一区在线观看| 亚洲精品高清在线| 欧美午夜理伦三级在线观看| 亚洲第一福利视频在线| 欧美一区二区三区免费视频| 日本特黄久久久高潮| 欧美mv日韩mv国产| 国产不卡视频在线播放| 国产精品日产欧美久久久久| 99综合影院在线| 亚洲一区免费观看| 91精品国产手机| 极品美女销魂一区二区三区 | 亚洲三级在线观看| 日本精品一级二级| 天堂成人免费av电影一区| 日韩三级免费观看| 国产寡妇亲子伦一区二区| 国产精品灌醉下药二区| 欧美专区日韩专区| 青青草原综合久久大伊人精品优势| 日韩一区二区在线播放| 国产电影一区在线| 亚洲三级在线播放| 正在播放亚洲一区| 国产麻豆视频精品| 亚洲精品第一国产综合野| 欧美群妇大交群中文字幕| 久久超碰97人人做人人爱| 国产精品久久久久久久蜜臀| 欧美系列一区二区|