com.caucho.el
Class ValueExpr

java.lang.Object
  extended by javax.el.Expression
      extended by javax.el.ValueExpression
          extended by com.caucho.el.Expr
              extended by com.caucho.el.ValueExpr
All Implemented Interfaces:
java.io.Serializable

public class ValueExpr
extends Expr

ValueExpression expression.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.el.Expr
L, log
 
Constructor Summary
ValueExpr(java.lang.String name, ValueExpression valExpr)
          Creates the identifier
 
Method Summary
 Expr createField(java.lang.String field)
          Creates a field reference using this expression as the base object.
 boolean equals(java.lang.Object o)
           
 java.lang.Object getValue(ELContext env)
          Evaluate the expr as an object.
 void printCreate(WriteStream os)
          Prints the code to create an IdExpr.
 void setValue(ELContext env, java.lang.Object value)
          Sets teh value.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.el.Expr
coerceToType, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalString, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, getType, hashCode, invocationError, invoke, isConstant, isDouble, isDoubleString, isLiteralText, isReadOnly, print, print, printEscaped, printEscapedString, setProperty, toBigDecimal, toBigInteger, toBoolean, toCharacter, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, toString, toString, toString, toString, toString, toStringWithNull
 
Methods inherited from class javax.el.ValueExpression
getValueReference
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueExpr

public ValueExpr(java.lang.String name,
                 ValueExpression valExpr)
Creates the identifier

Method Detail

createField

public Expr createField(java.lang.String field)
Creates a field reference using this expression as the base object.

Overrides:
createField in class Expr
Parameters:
field - the string reference for the field.

getValue

public java.lang.Object getValue(ELContext env)
                          throws ELException
Evaluate the expr as an object.

Specified by:
getValue in class Expr
Parameters:
env - the variable environment
Returns:
the value as an object
Throws:
ELException

setValue

public void setValue(ELContext env,
                     java.lang.Object value)
              throws ELException
Sets teh value.

Overrides:
setValue in class Expr
Parameters:
env - the variable environment
Throws:
ELException

printCreate

public void printCreate(WriteStream os)
                 throws java.io.IOException
Prints the code to create an IdExpr.

Overrides:
printCreate in class Expr
Parameters:
os - the stream to the *.java page
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Expr

toString

public java.lang.String toString()
Specified by:
toString in class Expr