Package org.apache.jasper.el
Class JspValueExpression
java.lang.Object
javax.el.Expression
javax.el.ValueExpression
org.apache.jasper.el.JspValueExpression
- All Implemented Interfaces:
Externalizable,Serializable
Wrapper for providing context to ValueExpressions
- Author:
- Jacob Hookom
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<?>Class<?>inthashCode()booleanbooleanisReadOnly(ELContext context) voidvoidvoidMethods inherited from class javax.el.ValueExpression
getValueReference
-
Constructor Details
-
JspValueExpression
public JspValueExpression() -
JspValueExpression
-
-
Method Details
-
getExpectedType
- Specified by:
getExpectedTypein classValueExpression
-
getType
public Class<?> getType(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException - Specified by:
getTypein classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
- The type of the result of this value expression
- Throws:
NullPointerException- If the supplied context isnullPropertyNotFoundException- If a property/variable resolution failed because no match was found or a match was found but was not readableELException- Wraps any exception throw whilst resolving a property or variable
-
isReadOnly
public boolean isReadOnly(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException - Specified by:
isReadOnlyin classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
trueif this expression is read only otherwisefalse- Throws:
NullPointerException- If the supplied context isnullPropertyNotFoundException- If a property/variable resolution failed because no match was found or a match was found but was not readableELException- Wraps any exception throw whilst resolving a property or variable
-
setValue
public void setValue(ELContext context, Object value) throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException - Specified by:
setValuein classValueExpression- Parameters:
context- The EL context for this evaluationvalue- The value to set the property to which this value expression refers- Throws:
NullPointerException- If the supplied context isnullPropertyNotFoundException- If a property/variable resolution failed because no match was foundPropertyNotWritableException- If a property/variable resolution failed because a match was found but was not writableELException- Wraps any exception throw whilst resolving a property or variable
-
getValue
public Object getValue(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException - Specified by:
getValuein classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
- The result of evaluating this value expression
- Throws:
NullPointerException- If the supplied context isnullPropertyNotFoundException- If a property/variable resolution failed because no match was found or a match was found but was not readableELException- Wraps any exception throw whilst resolving a property or variable
-
equals
- Specified by:
equalsin classExpression
-
hashCode
public int hashCode()- Specified by:
hashCodein classExpression
-
getExpressionString
- Specified by:
getExpressionStringin classExpression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralTextin classExpression
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-