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

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

?? listelresolver.java

?? java屬性邦定的(JSR-295)的一個實現
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
     * @param context The context of this evaluation.
     * @param base The list to be modified. Only bases of type 
     *     <code>List</code> are handled by this resolver.
     * @param property The index of the value to be set. Will be coerced
     *     into an integer.
     * @param val The value to be set at the given index.
     * @throws ClassCastException if the class of the specified element 
     *     prevents it from being added to this list.
     * @throws NullPointerException if context is <code>null</code>, or
     *     if the value is <code>null</code> and this <code>List</code>
     *     does not support <code>null</code> elements.
     * @throws IllegalArgumentException if the property could not be coerced
     *     into an integer, or if some aspect of the specified element 
     *     prevents it from being added to this list.
     * @throws PropertyNotWritableException if this resolver was constructed
     *     in read-only mode, or if the set operation is not supported by 
     *     the underlying list.
     * @throws ELException if an exception was thrown while performing
     *     the property or variable resolution. The thrown exception
     *     must be included as the cause property of this exception, if
     *     available.
     */
    public void setValue(ELContext context,
                         Object base,
                         Object property,
                         Object val) {

        if (context == null) {
            throw new NullPointerException();
        }

        if (base != null && base instanceof List) {
            context.setPropertyResolved(true);
            List list = (List) base;
            int index = toInteger(property);
            if (isReadOnly) {
                throw new PropertyNotWritableException();
            }
            try {
                list.set(index, val);
            } catch (UnsupportedOperationException ex) {
                throw new PropertyNotWritableException();
            } catch (IndexOutOfBoundsException ex) {
                throw new PropertyNotFoundException();
            } catch (ClassCastException ex) {
                throw ex;
            } catch (NullPointerException ex) {
                throw ex;
            } catch (IllegalArgumentException ex) {
                throw ex;
            }
        }
    }

    static private Class<?> theUnmodifiableListClass =
        Collections.unmodifiableList(new ArrayList()).getClass();

    /**
     * If the base object is a list, returns whether a call to 
     * {@link #setValue} will always fail.
     *
     * <p>If the base is a <code>List</code>, the <code>propertyResolved</code>
     * property of the <code>ELContext</code> object must be set to
     * <code>true</code> by this resolver, before returning. If this property
     * is not <code>true</code> after this method is called, the caller 
     * should ignore the return value.</p>
     *
     * <p>If this resolver was constructed in read-only mode, this method will
     * always return <code>true</code>.</p>
     *
     * <p>If a <code>List</code> was created using 
     * {@link java.util.Collections#unmodifiableList}, this method must
     * return <code>true</code>. Unfortunately, there is no Collections API
     * method to detect this. However, an implementation can create a
     * prototype unmodifiable <code>List</code> and query its runtime type
     * to see if it matches the runtime type of the base object as a 
     * workaround.</p>
     *
     * @param context The context of this evaluation.
     * @param base The list to analyze. Only bases of type <code>List</code>
     *     are handled by this resolver.
     * @param property The index of the element in the list to return the 
     *     acceptable type for. Will be coerced into an integer, but 
     *     otherwise ignored by this resolver.
     * @return If the <code>propertyResolved</code> property of 
     *     <code>ELContext</code> was set to <code>true</code>, then
     *     <code>true</code> if calling the <code>setValue</code> method
     *     will always fail or <code>false</code> if it is possible that
     *     such a call may succeed; otherwise undefined.
     * @throws PropertyNotFoundException if the given index is out of 
     *     bounds for this list.
     * @throws NullPointerException if context is <code>null</code>
     * @throws ELException if an exception was thrown while performing
     *     the property or variable resolution. The thrown exception
     *     must be included as the cause property of this exception, if
     *     available.
     */
    public boolean isReadOnly(ELContext context,
                              Object base,
                              Object property) {

        if (context == null) {
            throw new NullPointerException();
        }

        if (base != null && base instanceof List) {
            context.setPropertyResolved(true);
            List list = (List) base;
            int index = toInteger(property);
            if (index < 0 || index >= list.size()) {
                throw new PropertyNotFoundException();
            } 
            return list.getClass() == theUnmodifiableListClass || isReadOnly;
        }
        return false;
    }

    /**
     * Always returns <code>null</code>, since there is no reason to 
     * iterate through set set of all integers.
     *
     * <p>The {@link #getCommonPropertyType} method returns sufficient
     * information about what properties this resolver accepts.</p>
     *
     * @param context The context of this evaluation.
     * @param base The list. Only bases of type <code>List</code> are 
     *     handled by this resolver.
     * @return <code>null</code>.
     */
    public Iterator<FeatureDescriptor> getFeatureDescriptors(
                                          ELContext context,
                                          Object base) {
        return null;
    }

    /**
     * If the base object is a list, returns the most general type that 
     * this resolver accepts for the <code>property</code> argument.
     * Otherwise, returns <code>null</code>.
     *
     * <p>Assuming the base is a <code>List</code>, this method will always
     * return <code>Integer.class</code>. This is because <code>List</code>s
     * accept integers as their index.</p>
     *
     * @param context The context of this evaluation.
     * @param base The list to analyze. Only bases of type <code>List</code>
     *     are handled by this resolver.
     * @return <code>null</code> if base is not a <code>List</code>; otherwise
     *     <code>Integer.class</code>.
     */
    public Class<?> getCommonPropertyType(ELContext context,
                                               Object base) {
        if (base != null && base instanceof List) {
            return Integer.class;
        }
        return null;
    }
    
    private int toInteger(Object p) {
        if (p instanceof Integer) {
            return ((Integer) p).intValue();
        }
        if (p instanceof Character) {
            return ((Character) p).charValue();
        }
        if (p instanceof Boolean) {
            return ((Boolean) p).booleanValue()? 1: 0;
        }
        if (p instanceof Number) {
            return ((Number) p).intValue();
        }
        if (p instanceof String) {
            return Integer.parseInt((String) p);
        }
        throw new IllegalArgumentException();
    }

    private boolean isReadOnly;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚日韩国产aⅴ精品中极品| 国产一区中文字幕| 欧美大片在线观看| 99国产精品久久久久久久久久| 日韩vs国产vs欧美| 亚洲乱码日产精品bd| 日韩欧美视频一区| 在线精品国精品国产尤物884a| 国产一区二区福利| 男人的j进女人的j一区| 亚洲人成在线播放网站岛国| 久久亚洲一级片| 91精品国产综合久久精品性色| 色综合久久久久久久| 国产成a人亚洲精| 精品亚洲成a人| 日产欧产美韩系列久久99| 亚洲男人的天堂网| 国产精品视频观看| 国产婷婷色一区二区三区在线| 日韩一区二区三区四区| 欧美自拍偷拍午夜视频| 成人午夜电影久久影院| 国产九九视频一区二区三区| 免费观看在线色综合| 亚洲成人动漫av| 亚洲欧美激情插| 中文字幕在线不卡一区二区三区| 久久久亚洲午夜电影| 欧美一级欧美一级在线播放| 欧美综合天天夜夜久久| 在线国产电影不卡| 一本一道久久a久久精品| 成人网在线播放| 国产成人av一区二区三区在线| 国模娜娜一区二区三区| 国内精品国产三级国产a久久| 日韩电影一二三区| 伦理电影国产精品| 极品少妇xxxx精品少妇偷拍| 日韩av不卡在线观看| 偷拍亚洲欧洲综合| 蜜臀久久99精品久久久久久9| 日韩中文字幕区一区有砖一区| 午夜视频久久久久久| 亚洲第一福利一区| 日韩不卡手机在线v区| 免费高清在线视频一区·| 肉肉av福利一精品导航| 热久久国产精品| 国产美女主播视频一区| 福利一区二区在线观看| www.成人在线| 91玉足脚交白嫩脚丫在线播放| 91丨九色丨蝌蚪富婆spa| 91福利视频久久久久| 欧美电影在线免费观看| 欧美一级理论片| 国产色一区二区| 亚洲免费大片在线观看| 亚洲香肠在线观看| 麻豆中文一区二区| 国产成人亚洲综合a∨婷婷| 成人高清视频在线观看| 色欧美88888久久久久久影院| 欧美网站大全在线观看| 日韩一区二区在线看| 久久精品人人爽人人爽| 亚洲人成网站精品片在线观看| 午夜精品影院在线观看| 国产麻豆午夜三级精品| 99久久久精品| 欧美一级片在线| 国产精品久久久久久久久久久免费看 | 欧美性极品少妇| 777xxx欧美| 国产精品蜜臀在线观看| 午夜欧美电影在线观看| 国产一本一道久久香蕉| 一本色道久久综合狠狠躁的推荐| 69堂国产成人免费视频| 久久久精品免费网站| 亚洲一区在线观看免费观看电影高清| 青青草国产精品97视觉盛宴| 国产成人av电影在线观看| 色婷婷av一区| 国产亚洲欧美色| 午夜久久久久久| gogogo免费视频观看亚洲一| 欧美电影在线免费观看| 国产精品久久久一本精品 | 国产欧美精品在线观看| 亚洲成人免费看| 成人自拍视频在线观看| 欧美一区二区不卡视频| 亚洲欧洲成人av每日更新| 日韩精品久久久久久| 91免费国产在线| 国产日产精品一区| 五月综合激情网| 成人免费毛片片v| 欧美电影免费观看高清完整版在| 日韩毛片精品高清免费| 国产在线视频一区二区三区| 欧美亚洲另类激情小说| 国产精品无遮挡| 国产又粗又猛又爽又黄91精品| 欧美图区在线视频| 亚洲欧美日韩国产中文在线| 国产成人精品免费在线| 欧美大片国产精品| 日日夜夜精品视频免费| 日本电影欧美片| 中文字幕永久在线不卡| 国产乱子伦视频一区二区三区 | 一区免费观看视频| 国产精品自拍一区| 日韩免费高清av| 男男成人高潮片免费网站| 欧美嫩在线观看| 亚洲午夜在线视频| 色狠狠色狠狠综合| 亚洲欧美区自拍先锋| 成人一区在线看| 国产女同互慰高潮91漫画| 国产在线国偷精品产拍免费yy| 欧美一区午夜视频在线观看| 亚洲一区二区三区四区的| 91麻豆高清视频| 一区二区在线观看av| 91麻豆免费观看| 亚洲女与黑人做爰| 色偷偷久久人人79超碰人人澡| 国产精品国产三级国产aⅴ入口| 国产·精品毛片| 中文字幕乱码日本亚洲一区二区| 国产99久久久国产精品潘金| 欧美激情一区二区| 99热在这里有精品免费| 国产精品久久久久影院老司| av爱爱亚洲一区| 亚洲精品国产精品乱码不99| 91久久国产最好的精华液| 亚洲资源中文字幕| 欧美裸体一区二区三区| 日韩综合一区二区| 欧美va亚洲va国产综合| 精品一区二区免费看| 欧美xxx久久| 国产精品伊人色| 国产精品国产三级国产aⅴ入口 | 日韩avvvv在线播放| 欧美一区二区三区日韩| 乱一区二区av| 欧美国产日韩亚洲一区| 99精品视频在线播放观看| 亚洲欧美国产毛片在线| 欧美日韩在线精品一区二区三区激情| 偷窥少妇高潮呻吟av久久免费| 欧美r级在线观看| 国产99久久久国产精品潘金| 日韩一区在线免费观看| 欧美日韩精品系列| 久久精品99国产精品| 国产精品美女久久久久久| 91成人免费在线| 秋霞成人午夜伦在线观看| 26uuu国产一区二区三区| 成人黄色免费短视频| 亚洲国产视频在线| 欧美精品一区二区三区蜜桃视频 | 日韩一区二区免费在线观看| 国产精品一区在线| 亚洲一区二区三区激情| 日韩女优毛片在线| 99精品视频在线观看免费| 日韩中文字幕麻豆| 国产精品美女久久久久久久 | 久久久午夜精品理论片中文字幕| 成人av网站在线观看免费| 亚洲成a人v欧美综合天堂| 国产亚洲综合在线| 欧美午夜精品理论片a级按摩| 国内精品国产成人| 一区二区三区美女| 久久精品欧美一区二区三区麻豆| 在线观看av不卡| 大美女一区二区三区| 偷拍与自拍一区| 亚洲视频一二三区| 久久中文娱乐网| 欧美日韩一区二区三区高清 | 日韩一区二区视频在线观看| 成人美女视频在线观看18| 美女爽到高潮91| 亚洲一区二区三区四区的| 欧美国产日韩在线观看| 日韩免费电影一区| 精品视频在线看| 99r国产精品|