Package org.apache.jasper.el
Class JspValueExpression
java.lang.Object
jakarta.el.Expression
jakarta.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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Class
<?> Class
<?> <T> T
int
hashCode()
boolean
boolean
isReadOnly
(ELContext context) void
void
void
Methods inherited from class jakarta.el.ValueExpression
getValueReference
-
Constructor Details
-
JspValueExpression
public JspValueExpression() -
JspValueExpression
-
-
Method Details
-
getExpectedType
- Specified by:
getExpectedType
in classValueExpression
-
getType
public Class<?> getType(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException - Specified by:
getType
in 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 isnull
PropertyNotFoundException
- 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:
isReadOnly
in classValueExpression
- Parameters:
context
- The EL context for this evaluation- Returns:
true
if this expression is read only otherwisefalse
- Throws:
NullPointerException
- If the supplied context isnull
PropertyNotFoundException
- 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:
setValue
in 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 isnull
PropertyNotFoundException
- 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 <T> T getValue(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException - Specified by:
getValue
in classValueExpression
- Type Parameters:
T
- The expected type for the result of evaluating this value expression- Parameters:
context
- The EL context for this evaluation- Returns:
- The result of evaluating this value expression
- Throws:
NullPointerException
- If the supplied context isnull
PropertyNotFoundException
- 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:
equals
in classExpression
-
hashCode
public int hashCode()- Specified by:
hashCode
in classExpression
-
getExpressionString
- Specified by:
getExpressionString
in classExpression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralText
in classExpression
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-