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

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

?? listelresolver.java

?? java屬性邦定的(JSR-295)的一個實現
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Copyright (C) 2007 Sun Microsystems, Inc. All rights reserved. Use is
 * subject to license terms.
 */

package org.jdesktop.el;

import java.util.List;
import java.util.Iterator;
import java.util.Collections;
import java.util.ArrayList;
import java.beans.FeatureDescriptor;


/**
 * Defines property resolution behavior on instances of {@link java.util.List}.
 *
 * <p>This resolver handles base objects of type <code>java.util.List</code>.
 * It accepts any object as a property and coerces that object into an
 * integer index into the list. The resulting value is the value in the list
 * at that index.</p>
 *
 * <p>This resolver can be constructed in read-only mode, which means that
 * {@link #isReadOnly} will always return <code>true</code> and 
 * {@link #setValue} will always throw
 * <code>PropertyNotWritableException</code>.</p>
 *
 * <p><code>ELResolver</code>s are combined together using 
 * {@link CompositeELResolver}s, to define rich semantics for evaluating 
 * an expression. See the javadocs for {@link ELResolver} for details.</p>
 *
 * @see CompositeELResolver
 * @see ELResolver
 * @see java.util.List
 * @since JSP 2.1
 */
public class ListELResolver extends ELResolver {

    /**
     * Creates a new read/write <code>ListELResolver</code>.
     */
    public ListELResolver() {
        this.isReadOnly = false;
    }

    /**
     * Creates a new <code>ListELResolver</code> whose read-only status is
     * determined by the given parameter.
     *
     * @param isReadOnly <code>true</code> if this resolver cannot modify
     *     lists; <code>false</code> otherwise.
     */
    public ListELResolver(boolean isReadOnly) {
        this.isReadOnly = isReadOnly;
    }

    /**
     * If the base object is a list, returns the most general acceptable type 
     * for a value in this list.
     *
     * <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>Assuming the base is a <code>List</code>, this method will always
     * return <code>Object.class</code>. This is because <code>List</code>s
     * accept any object as an element.</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
     *     the most general acceptable type; 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 Class<?> getType(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 Object.class;
        }
        return null;
    }

    /**
     * If the base object is a list, returns the value at the given index.
     * The index is specified by the <code>property</code> argument, and
     * coerced into an integer. If the coercion could not be performed,
     * an <code>IllegalArgumentException</code> is thrown. If the index is
     * out of bounds, <code>null</code> is returned.
     *
     * <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>
     *
     * @param context The context of this evaluation.
     * @param base The list to be analyzed. Only bases of type 
     *     <code>List</code> are handled by this resolver.
     * @param property The index of the value to be returned. Will be coerced
     *     into an integer.
     * @return If the <code>propertyResolved</code> property of 
     *     <code>ELContext</code> was set to <code>true</code>, then
     *     the value at the given index or <code>null</code>
     *     if the index was out of bounds. Otherwise, undefined.
     * @throws IllegalArgumentException if the property could not be coerced
     *     into an integer.
     * @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 Object getValue(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()) {
                return null;
            } 
            return list.get(index);
        }
        return null;
    }

    /**
     * If the base object is a list, attempts to set the value at the
     * given index with the given value. The index is specified by the
     * <code>property</code> argument, and coerced into an integer. If the 
     * coercion could not be performed, an 
     * <code>IllegalArgumentException</code> is thrown. If the index is
     * out of bounds, a <code>PropertyNotFoundException</code> is thrown.
     *
     * <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 
     * can safely assume no value was set.</p>
     *
     * <p>If this resolver was constructed in read-only mode, this method will
     * always throw <code>PropertyNotWritableException</code>.</p>
     *
     * <p>If a <code>List</code> was created using 
     * {@link java.util.Collections#unmodifiableList}, this method must
     * throw <code>PropertyNotWritableException</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>
     *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美日韩中文字幕一区二区三区 | 美女网站色91| 国产精品 欧美精品| 欧美日韩一区二区三区高清| 久久色.com| 三级久久三级久久| 91亚洲永久精品| 久久久蜜臀国产一区二区| 五月综合激情日本mⅴ| 99久久精品免费看| 久久久精品影视| 日韩电影在线看| 欧美午夜理伦三级在线观看| 中文字幕不卡在线播放| 久久精品国产99久久6| 欧美色区777第一页| 国产精品欧美一区喷水| 国产一本一道久久香蕉| 日韩视频国产视频| 男人的天堂亚洲一区| 欧美视频自拍偷拍| 亚洲国产精品一区二区久久恐怖片 | 欧美影院午夜播放| 日韩毛片精品高清免费| 成人avav影音| **欧美大码日韩| 成人av在线电影| 国产精品久久久久一区二区三区 | 精品一二三四区| 日韩色在线观看| 免费成人在线视频观看| 7777精品伊人久久久大香线蕉| 一区二区三国产精华液| 色久优优欧美色久优优| 亚洲精品你懂的| 欧美熟乱第一页| 日韩和欧美的一区| 欧美刺激午夜性久久久久久久 | 国产欧美日韩激情| 成人激情免费电影网址| 综合亚洲深深色噜噜狠狠网站| 色域天天综合网| 亚洲国产aⅴ天堂久久| 91精品蜜臀在线一区尤物| 日av在线不卡| 欧美精品一区二区三区在线 | 国产精品电影一区二区| 成人综合在线观看| 亚洲日本在线a| 欧美日韩美女一区二区| 久久国产福利国产秒拍| 国产日韩欧美不卡| 91在线播放网址| 午夜久久久久久久久| 精品国产91久久久久久久妲己| 国产一区二区主播在线| 自拍偷拍国产亚洲| 欧美人动与zoxxxx乱| 精品在线你懂的| 国产精品久久久一区麻豆最新章节| 91丨九色porny丨蝌蚪| 天天亚洲美女在线视频| 精品美女被调教视频大全网站| 成人精品电影在线观看| 午夜av一区二区三区| 国产午夜精品一区二区三区嫩草| 91视频一区二区三区| 日韩不卡手机在线v区| 国产亚洲美州欧州综合国| 色诱亚洲精品久久久久久| 免费看日韩a级影片| 国产精品国产三级国产aⅴ原创| 欧美日韩在线综合| 国产91丝袜在线观看| 亚洲成人自拍一区| 欧美韩国一区二区| 日韩精品综合一本久道在线视频| eeuss鲁片一区二区三区在线观看| 午夜精品久久久久久久99水蜜桃| 国产亚洲欧美日韩日本| 欧美日韩aaaaaa| jlzzjlzz欧美大全| 卡一卡二国产精品| 亚洲一区二区三区美女| 中文字幕不卡三区| 日韩精品一区二| 欧美喷水一区二区| 91女厕偷拍女厕偷拍高清| 韩国三级中文字幕hd久久精品| 亚洲最大的成人av| 国产精品乱码久久久久久| 精品免费国产一区二区三区四区| 欧美亚洲国产一区二区三区 | 视频一区二区三区在线| 中文字幕日本不卡| 国产亚洲视频系列| 在线观看91精品国产麻豆| 97精品久久久久中文字幕| 国产精品18久久久久久vr| 日本不卡一区二区三区| 亚洲狠狠丁香婷婷综合久久久| 久久久久久毛片| 精品乱码亚洲一区二区不卡| 欧美精品久久天天躁| 色综合久久久网| 91原创在线视频| 91香蕉国产在线观看软件| 国产 欧美在线| 福利一区二区在线观看| 精品一二三四区| 国产一区二区在线视频| 久久精品二区亚洲w码| 日本欧美韩国一区三区| 午夜精品爽啪视频| 日本不卡一区二区三区| 麻豆国产精品一区二区三区| 奇米影视一区二区三区小说| 奇米一区二区三区av| 久久99精品国产麻豆婷婷| 免费观看成人鲁鲁鲁鲁鲁视频| 免费精品99久久国产综合精品| 午夜电影一区二区| 秋霞av亚洲一区二区三| 精品一区二区日韩| 国产成人aaa| 97久久超碰国产精品| 91网上在线视频| 欧美蜜桃一区二区三区| 91精品国产综合久久久久久久| 日韩一区二区三区三四区视频在线观看| 欧美日韩国产一二三| 日韩欧美国产精品| 中文一区在线播放| 一区二区三区免费看视频| 日韩专区中文字幕一区二区| 蜜桃av一区二区三区| 国产99精品在线观看| 91在线精品秘密一区二区| 在线视频观看一区| 91精品国产综合久久精品图片| 26uuu欧美| 亚洲天堂免费看| 奇米精品一区二区三区在线观看一 | 中文字幕二三区不卡| 亚洲免费伊人电影| 五月婷婷欧美视频| 大白屁股一区二区视频| 在线免费观看不卡av| 91精品国产欧美一区二区18| 久久久久88色偷偷免费| 亚洲在线视频一区| 国内精品伊人久久久久av影院| 成人中文字幕在线| 欧美久久久一区| 国产三级久久久| 日日骚欧美日韩| 成人丝袜高跟foot| 91精品欧美一区二区三区综合在 | 丰满少妇在线播放bd日韩电影| 欧美在线观看你懂的| 精品久久久久av影院| 亚洲久草在线视频| 久久国产人妖系列| 日本精品一区二区三区四区的功能| 欧美浪妇xxxx高跟鞋交| 国产精品欧美经典| 欧美aaaaaa午夜精品| 色综合久久久久综合体桃花网| 91精品国产麻豆国产自产在线| 国产精品久久久一本精品 | xfplay精品久久| 亚洲福利视频一区| av激情综合网| 亚洲精品一区二区三区影院| 亚洲一区二区三区爽爽爽爽爽| 成人激情午夜影院| 2欧美一区二区三区在线观看视频| 伊人开心综合网| 成人深夜视频在线观看| 欧美不卡123| 午夜激情综合网| 91成人免费在线视频| 国产精品―色哟哟| 激情深爱一区二区| 777精品伊人久久久久大香线蕉| 一区二区三区日韩精品视频| 高清不卡一区二区| 欧美国产精品专区| 国产丶欧美丶日本不卡视频| 日韩欧美亚洲国产精品字幕久久久| 一区二区三区高清| 91麻豆精品一区二区三区| 国产精品欧美久久久久一区二区| 国产一区二区视频在线播放| 日韩欧美第一区| 蜜桃av一区二区三区| 777午夜精品免费视频| 午夜欧美电影在线观看| 欧美日韩国产精选| 日韩精品一二三四|