FileDocCategorySizeDatePackage
IndexedValueExpression.javaAPI DocGlassfish v2 API5010Sat May 05 19:17:14 BST 2007javax.servlet.jsp.jstl.core

IndexedValueExpression

public final class IndexedValueExpression extends ValueExpression
author
Jacob Hookom
version
$Id: IndexedValueExpression.java,v 1.4 2007/05/06 02:17:13 tcfujii Exp $

Fields Summary
private static final long
serialVersionUID
protected final Integer
i
protected final ValueExpression
orig
Constructors Summary
public IndexedValueExpression(ValueExpression orig, int i)


          
         
        this.i = Integer.valueOf(i);
        this.orig = orig;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        return this.orig.equals(obj);
    
public java.lang.ClassgetExpectedType()

        return Object.class;
    
public java.lang.StringgetExpressionString()

        return this.orig.getExpressionString();
    
public java.lang.ClassgetType(javax.el.ELContext context)

        Object base = this.orig.getValue(context);
        if (base != null) {
            context.setPropertyResolved(false);
            return context.getELResolver().getType(context, base, i);
        }
        return null;
    
public java.lang.ObjectgetValue(javax.el.ELContext context)

        Object base = this.orig.getValue(context);
        if (base != null) {
            context.setPropertyResolved(false);
            return context.getELResolver().getValue(context, base, i);
        }
        return null;
    
public inthashCode()

        return this.orig.hashCode();
    
public booleanisLiteralText()

        return false;
    
public booleanisReadOnly(javax.el.ELContext context)

        Object base = this.orig.getValue(context);
        if (base != null) {
            context.setPropertyResolved(false);
            return context.getELResolver().isReadOnly(context, base, i);
        }
        return true;
    
public voidsetValue(javax.el.ELContext context, java.lang.Object value)

        Object base = this.orig.getValue(context);
        if (base != null) {
            context.setPropertyResolved(false);
            context.getELResolver().setValue(context, base, i, value);
        }