FileDocCategorySizeDatePackage
JspValueExpression.javaAPI DocApache Tomcat 6.0.144873Fri Jul 20 04:20:36 BST 2007org.apache.jasper.el

JspValueExpression

public final class JspValueExpression extends ValueExpression implements Externalizable
Wrapper for providing context to ValueExpressions
author
Jacob Hookom

Fields Summary
private ValueExpression
target
private String
mark
Constructors Summary
public JspValueExpression()

        super();
    
public JspValueExpression(String mark, ValueExpression target)

        this.target = target;
        this.mark = mark;
    
Methods Summary
public booleanequals(java.lang.Object obj)

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

        return this.target.getExpectedType();
    
public java.lang.StringgetExpressionString()

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

        try {
            return this.target.getType(context);
        } catch (PropertyNotFoundException e) {
            if (e instanceof JspPropertyNotFoundException) throw e;
            throw new JspPropertyNotFoundException(this.mark, e);
        } catch (ELException e) {
            if (e instanceof JspELException) throw e;
            throw new JspELException(this.mark, e);
        }
    
public java.lang.ObjectgetValue(javax.el.ELContext context)

        try {
            return this.target.getValue(context);
        } catch (PropertyNotFoundException e) {
            if (e instanceof JspPropertyNotFoundException) throw e;
            throw new JspPropertyNotFoundException(this.mark, e);
        } catch (ELException e) {
            if (e instanceof JspELException) throw e;
            throw new JspELException(this.mark, e);
        }
    
public inthashCode()

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

        return this.target.isLiteralText();
    
public booleanisReadOnly(javax.el.ELContext context)

        try {
            return this.target.isReadOnly(context);
        } catch (PropertyNotFoundException e) {
            if (e instanceof JspPropertyNotFoundException) throw e;
            throw new JspPropertyNotFoundException(this.mark, e);
        } catch (ELException e) {
            if (e instanceof JspELException) throw e;
            throw new JspELException(this.mark, e);
        }
    
public voidreadExternal(java.io.ObjectInput in)

        this.mark = in.readUTF();
        this.target = (ValueExpression) in.readObject();
    
public voidsetValue(javax.el.ELContext context, java.lang.Object value)

        try {
            this.target.setValue(context, value);
        } catch (PropertyNotWritableException e) {
            if (e instanceof JspPropertyNotWritableException) throw e;
            throw new JspPropertyNotWritableException(this.mark, e);
        } catch (PropertyNotFoundException e) {
            if (e instanceof JspPropertyNotFoundException) throw e;
            throw new JspPropertyNotFoundException(this.mark, e);
        } catch (ELException e) {
            if (e instanceof JspELException) throw e;
            throw new JspELException(this.mark, e);
        }
    
public voidwriteExternal(java.io.ObjectOutput out)

        out.writeUTF(this.mark);
        out.writeObject(this.target);