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

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

?? memberbox.java

?? 主要的怎么樣結合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 * Felix Meschberger * * 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.lang.reflect.*;import java.io.*;/** * Wrappper class for Method and Constructor instances to cache * getParameterTypes() results, recover from IllegalAccessException * in some cases and provide serialization support. * * @author Igor Bukanov */final class MemberBox implements Serializable{    static final long serialVersionUID = 6358550398665688245L;    MemberBox(Method method)    {        init(method);    }    MemberBox(Constructor constructor)    {        init(constructor);    }    private void init(Method method)    {        this.memberObject = method;        this.argTypes = method.getParameterTypes();    }    private void init(Constructor constructor)    {        this.memberObject = constructor;        this.argTypes = constructor.getParameterTypes();    }    Method method()    {        return (Method)memberObject;    }    Constructor ctor()    {        return (Constructor)memberObject;    }    boolean isMethod()    {        return memberObject instanceof Method;    }    boolean isCtor()    {        return memberObject instanceof Constructor;    }    boolean isStatic()    {        return Modifier.isStatic(memberObject.getModifiers());    }    String getName()    {        return memberObject.getName();    }    Class getDeclaringClass()    {        return memberObject.getDeclaringClass();    }    String toJavaDeclaration()    {        StringBuffer sb = new StringBuffer();        if (isMethod()) {            Method method = method();            sb.append(method.getReturnType());            sb.append(' ');            sb.append(method.getName());        } else {            Constructor ctor = ctor();            String name = ctor.getDeclaringClass().getName();            int lastDot = name.lastIndexOf('.');            if (lastDot >= 0) {                name = name.substring(lastDot + 1);            }            sb.append(name);        }        sb.append(JavaMembers.liveConnectSignature(argTypes));        return sb.toString();    }    public String toString()    {        return memberObject.toString();    }    Object invoke(Object target, Object[] args)    {        Method method = method();        try {            try {                return method.invoke(target, args);            } catch (IllegalAccessException ex) {                Method accessible = searchAccessibleMethod(method, argTypes);                if (accessible != null) {                    memberObject = accessible;                    method = accessible;                } else {                    if (!VMBridge.instance.tryToMakeAccessible(method)) {                        throw Context.throwAsScriptRuntimeEx(ex);                    }                }                // Retry after recovery                return method.invoke(target, args);            }        } catch (Exception ex) {            throw Context.throwAsScriptRuntimeEx(ex);        }    }    Object newInstance(Object[] args)    {        Constructor ctor = ctor();        try {            try {                return ctor.newInstance(args);            } catch (IllegalAccessException ex) {                if (!VMBridge.instance.tryToMakeAccessible(ctor)) {                    throw Context.throwAsScriptRuntimeEx(ex);                }            }            return ctor.newInstance(args);        } catch (Exception ex) {            throw Context.throwAsScriptRuntimeEx(ex);        }    }    private static Method searchAccessibleMethod(Method method, Class[] params)    {        int modifiers = method.getModifiers();        if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers)) {            Class c = method.getDeclaringClass();            if (!Modifier.isPublic(c.getModifiers())) {                String name = method.getName();                Class[] intfs = c.getInterfaces();                for (int i = 0, N = intfs.length; i != N; ++i) {                    Class intf = intfs[i];                    if (Modifier.isPublic(intf.getModifiers())) {                        try {                            return intf.getMethod(name, params);                        } catch (NoSuchMethodException ex) {                        } catch (SecurityException ex) {  }                    }                }                for (;;) {                    c = c.getSuperclass();                    if (c == null) { break; }                    if (Modifier.isPublic(c.getModifiers())) {                        try {                            Method m = c.getMethod(name, params);                            int mModifiers = m.getModifiers();                            if (Modifier.isPublic(mModifiers)                                && !Modifier.isStatic(mModifiers))                            {                                return m;                            }                        } catch (NoSuchMethodException ex) {                        } catch (SecurityException ex) {  }                    }                }            }        }        return null;    }    private void readObject(ObjectInputStream in)        throws IOException, ClassNotFoundException    {        in.defaultReadObject();        Member member = readMember(in);        if (member instanceof Method) {            init((Method)member);        } else {            init((Constructor)member);        }    }    private void writeObject(ObjectOutputStream out)        throws IOException    {        out.defaultWriteObject();        writeMember(out, memberObject);    }    /**     * Writes a Constructor or Method object.     *     * Methods and Constructors are not serializable, so we must serialize     * information about the class, the name, and the parameters and     * recreate upon deserialization.     */    private static void writeMember(ObjectOutputStream out, Member member)        throws IOException    {        if (member == null) {            out.writeBoolean(false);            return;        }        out.writeBoolean(true);        if (!(member instanceof Method || member instanceof Constructor))            throw new IllegalArgumentException("not Method or Constructor");        out.writeBoolean(member instanceof Method);        out.writeObject(member.getName());        out.writeObject(member.getDeclaringClass());        if (member instanceof Method) {            writeParameters(out, ((Method) member).getParameterTypes());        } else {            writeParameters(out, ((Constructor) member).getParameterTypes());        }    }    /**     * Reads a Method or a Constructor from the stream.     */    private static Member readMember(ObjectInputStream in)        throws IOException, ClassNotFoundException    {        if (!in.readBoolean())            return null;        boolean isMethod = in.readBoolean();        String name = (String) in.readObject();        Class declaring = (Class) in.readObject();        Class[] parms = readParameters(in);        try {            if (isMethod) {                return declaring.getMethod(name, parms);            } else {                return declaring.getConstructor(parms);            }        } catch (NoSuchMethodException e) {            throw new IOException("Cannot find member: " + e);        }    }    private static final Class[] primitives = {        Boolean.TYPE,        Byte.TYPE,        Character.TYPE,        Double.TYPE,        Float.TYPE,        Integer.TYPE,        Long.TYPE,        Short.TYPE,        Void.TYPE    };    /**     * Writes an array of parameter types to the stream.     *     * Requires special handling because primitive types cannot be     * found upon deserialization by the default Java implementation.     */    private static void writeParameters(ObjectOutputStream out, Class[] parms)        throws IOException    {        out.writeShort(parms.length);    outer:        for (int i=0; i < parms.length; i++) {            Class parm = parms[i];            out.writeBoolean(parm.isPrimitive());            if (!parm.isPrimitive()) {                out.writeObject(parm);                continue;            }            for (int j=0; j < primitives.length; j++) {                if (parm.equals(primitives[j])) {                    out.writeByte(j);                    continue outer;                }            }            throw new IllegalArgumentException("Primitive " + parm +                                               " not found");        }    }    /**     * Reads an array of parameter types from the stream.     */    private static Class[] readParameters(ObjectInputStream in)        throws IOException, ClassNotFoundException    {        Class[] result = new Class[in.readShort()];        for (int i=0; i < result.length; i++) {            if (!in.readBoolean()) {                result[i] = (Class) in.readObject();                continue;            }            result[i] = primitives[in.readByte()];        }        return result;    }    private transient Member memberObject;    transient Class[] argTypes;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av午夜精品一区二区三区| 亚洲va欧美va人人爽| 久久99精品一区二区三区三区| 91福利社在线观看| 亚洲欧美日韩久久| 色综合天天在线| 亚洲三级理论片| 日本韩国一区二区| 亚洲一区中文在线| 欧美性videosxxxxx| 一区二区三区毛片| 欧美日韩黄色一区二区| 视频一区国产视频| 欧美电视剧在线看免费| 裸体歌舞表演一区二区| 欧美一二三区在线观看| 久久精品久久久精品美女| 日韩精品资源二区在线| 国产在线观看免费一区| 国产精品人妖ts系列视频| www.66久久| 亚洲小说春色综合另类电影| 欧美又粗又大又爽| 午夜精品久久久久久久久久| 日韩视频一区二区在线观看| 人人超碰91尤物精品国产| 欧美不卡在线视频| 国产成人8x视频一区二区| 国产精品久久久一本精品| 91网址在线看| 亚洲bt欧美bt精品| 日韩欧美国产一区二区三区| 国产精品2024| 亚洲精品第1页| 777奇米四色成人影色区| 亚洲免费av高清| 精品视频一区三区九区| 精品一区二区三区视频| 精品少妇一区二区三区在线播放| 国产宾馆实践打屁股91| 亚洲一区二区视频在线| 欧美一二三在线| 9久草视频在线视频精品| 午夜不卡在线视频| 国产午夜精品一区二区三区四区| 91丨九色丨黑人外教| 夜夜操天天操亚洲| 日韩欧美视频在线| 色综合天天综合| 成人午夜精品在线| 国产一区二区视频在线播放| 亚洲成a天堂v人片| 亚洲精品综合在线| 国产精品蜜臀av| 国产日韩欧美精品在线| 欧美一区二区免费| 欧美视频在线一区| 色婷婷激情综合| 99久精品国产| 成人美女视频在线看| 国产一区二区三区四区在线观看 | 9i在线看片成人免费| 另类小说综合欧美亚洲| 日日夜夜一区二区| 一区二区三区欧美| 亚洲精品免费电影| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产亚洲欧美日韩日本| 精品国产一区二区精华| 日韩欧美电影一区| 精品久久国产字幕高潮| 欧美一区二区黄| 69p69国产精品| 7777精品伊人久久久大香线蕉经典版下载| 欧美在线观看18| 欧美日韩中字一区| 欧美日韩国产一级片| 欧美日韩日日夜夜| 欧美福利视频一区| 日韩视频免费观看高清在线视频| 欧美一区二区视频在线观看2022 | 国产精品理论片在线观看| 久久网站热最新地址| 久久伊人中文字幕| 久久久久久**毛片大全| 国产日韩欧美不卡| 综合在线观看色| 艳妇臀荡乳欲伦亚洲一区| 亚洲午夜激情av| 视频一区在线视频| 九九视频精品免费| 粉嫩aⅴ一区二区三区四区| 亚洲一卡二卡三卡四卡无卡久久| 一区二区欧美精品| 日本不卡1234视频| 国产精品亚洲成人| 不卡影院免费观看| 欧美色电影在线| 欧美大片日本大片免费观看| 久久久精品国产免大香伊| 亚洲欧美综合色| 午夜一区二区三区在线观看| 日韩二区三区四区| 成人性生交大片| 欧美婷婷六月丁香综合色| 日韩一区二区免费在线观看| 久久综合色天天久久综合图片| 国产精品国产自产拍在线| 亚洲国产日韩综合久久精品| 蜜桃av一区二区三区电影| 成人亚洲精品久久久久软件| 欧美在线免费观看视频| 2023国产精品自拍| 亚洲理论在线观看| 国产一区二区精品在线观看| 丁香桃色午夜亚洲一区二区三区| 91片黄在线观看| 日韩免费观看高清完整版| 综合av第一页| 免费成人你懂的| 色婷婷一区二区三区四区| 日韩精品最新网址| 亚洲一区二区三区自拍| 国产成人精品影视| 91精品国产色综合久久不卡蜜臀| 国产精品美女www爽爽爽| 日韩av一二三| 色嗨嗨av一区二区三区| 久久综合狠狠综合久久综合88| 亚洲综合色婷婷| 粉嫩高潮美女一区二区三区| 欧美精品一级二级| 国产午夜精品美女毛片视频| 亚洲成人午夜影院| 色综合一个色综合亚洲| 久久午夜免费电影| 日本亚洲天堂网| 日本道免费精品一区二区三区| 日本一区二区视频在线| 久久精工是国产品牌吗| 欧美亚洲一区三区| 中文字幕中文字幕在线一区| 国产综合色在线视频区| 91超碰这里只有精品国产| 一区二区三区在线影院| 成人91在线观看| 亚洲国产精品v| 国产风韵犹存在线视精品| 日韩欧美三级在线| 日本v片在线高清不卡在线观看| 日韩一区二区在线看| 国产盗摄精品一区二区三区在线| 国产精品女上位| 欧美性生活大片视频| 粉嫩av一区二区三区在线播放| 亚洲区小说区图片区qvod| 欧美人与性动xxxx| 亚洲综合久久av| 自拍av一区二区三区| 国产欧美日韩视频一区二区| 欧美一区在线视频| 91一区二区三区在线观看| 蜜桃视频第一区免费观看| 夜夜嗨av一区二区三区中文字幕| 国产夜色精品一区二区av| 亚洲图片另类小说| 高清成人在线观看| 久久午夜免费电影| 国产一区二区三区最好精华液| 欧美zozo另类异族| 激情综合网天天干| 精品剧情在线观看| 国产美女一区二区| 国产精品一二三| 美女久久久精品| 亚洲永久精品大片| 日本成人中文字幕在线视频| 日韩电影免费一区| 蜜芽一区二区三区| 亚洲电影欧美电影有声小说| 久久精品亚洲精品国产欧美kt∨ | 亚洲日本va午夜在线影院| 欧美成人艳星乳罩| 欧美v日韩v国产v| 精品久久久久99| 国产精品―色哟哟| 亚洲精品欧美在线| 极品尤物av久久免费看| 不卡的电视剧免费网站有什么| 99久久免费国产| 日韩一区二区三区高清免费看看| 精品美女被调教视频大全网站| 中文字幕第一区综合| 五月婷婷激情综合| 东方欧美亚洲色图在线| 菠萝蜜视频在线观看一区| 欧美日韩一级片在线观看| www久久精品| 丝袜美腿亚洲一区二区图片| 欧美aⅴ一区二区三区视频|