com.caucho.el
Class ObjectLiteralValueExpression

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

public class ObjectLiteralValueExpression
extends ValueExpression

Wraps object into a value javax.el.ValueExpression, optionally converts

See Also:
ExpressionFactory.createValueExpression(Object, Class), Serialized Form

Constructor Summary
ObjectLiteralValueExpression(java.lang.Object object, java.lang.Class<?> expectedType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class<?> getExpectedType()
           
 java.lang.String getExpressionString()
           
 java.lang.Class<?> getType(ELContext context)
           
 java.lang.Object getValue(ELContext context)
           
 int hashCode()
           
 boolean isLiteralText()
           
 boolean isReadOnly(ELContext context)
           
 void setValue(ELContext context, java.lang.Object value)
           
 
Methods inherited from class javax.el.ValueExpression
getValueReference
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectLiteralValueExpression

public ObjectLiteralValueExpression(java.lang.Object object,
                                    java.lang.Class<?> expectedType)
Method Detail

getExpectedType

public java.lang.Class<?> getExpectedType()
Specified by:
getExpectedType in class ValueExpression

getType

public java.lang.Class<?> getType(ELContext context)
                           throws PropertyNotFoundException,
                                  ELException
Specified by:
getType in class ValueExpression
Throws:
PropertyNotFoundException
ELException

getValue

public java.lang.Object getValue(ELContext context)
                          throws PropertyNotFoundException,
                                 ELException
Specified by:
getValue in class ValueExpression
Throws:
PropertyNotFoundException
ELException

isReadOnly

public boolean isReadOnly(ELContext context)
                   throws PropertyNotFoundException,
                          ELException
Specified by:
isReadOnly in class ValueExpression
Throws:
PropertyNotFoundException
ELException

setValue

public void setValue(ELContext context,
                     java.lang.Object value)
              throws PropertyNotFoundException,
                     PropertyNotWritableException,
                     ELException
Specified by:
setValue in class ValueExpression
Throws:
PropertyNotFoundException
PropertyNotWritableException
ELException

getExpressionString

public java.lang.String getExpressionString()
Specified by:
getExpressionString in class Expression

isLiteralText

public boolean isLiteralText()
Specified by:
isLiteralText in class Expression

hashCode

public int hashCode()
Specified by:
hashCode in class Expression

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in class Expression