Package jakarta.el
Class ValueExpression
java.lang.Object
jakarta.el.Expression
jakarta.el.ValueExpression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Class
<?> abstract Class
<?> abstract <T> T
getValueReference
(ELContext context) abstract boolean
isReadOnly
(ELContext context) abstract void
Methods inherited from class jakarta.el.Expression
equals, getExpressionString, hashCode, isLiteralText
-
Constructor Details
-
ValueExpression
public ValueExpression()
-
-
Method Details
-
getValue
- 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
-
setValue
- 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
-
isReadOnly
- 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
-
getType
- 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
-
getExpectedType
-
getValueReference
- Parameters:
context
- The EL context for this evaluation- Returns:
- This default implementation always returns
null
- Since:
- EL 2.2
-