Class ELExpression
java.lang.Object
org.springframework.binding.expression.el.ELExpression
- All Implemented Interfaces:
Expression
Evaluates a parsed EL expression.
- Author:
- Jeremy Grelle, Scott Andrews
-
Constructor Summary
ConstructorDescriptionELExpression
(ELContextFactory factory, jakarta.el.ValueExpression valueExpression) Creates a new el expression -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the original string used to create this expression, unmodified.Evaluate this expression in the provided context and return the result of evaluation.Class<?>
getValueType
(Object context) Returns the most general type that can be passed to theExpression.setValue(Object, Object)
method for the given context.int
hashCode()
void
Set this expression in the provided context to the value provided.toString()
-
Constructor Details
-
ELExpression
Creates a new el expression- Parameters:
factory
- the el context factory for creating the EL context that will be used during expression evaluationvalueExpression
- the value expression to evaluate
-
-
Method Details
-
getValue
Description copied from interface:Expression
Evaluate this expression in the provided context and return the result of evaluation.- Specified by:
getValue
in interfaceExpression
- Parameters:
context
- the context to evaluate this expression in- Returns:
- the evaluation result
- Throws:
EvaluationException
- an exception occurred during expression evaluation
-
setValue
Description copied from interface:Expression
Set this expression in the provided context to the value provided.- Specified by:
setValue
in interfaceExpression
- Parameters:
context
- the context on which the new value should be setvalue
- the new value to set- Throws:
EvaluationException
- an exception occurred during expression evaluation
-
getValueType
Description copied from interface:Expression
Returns the most general type that can be passed to theExpression.setValue(Object, Object)
method for the given context.- Specified by:
getValueType
in interfaceExpression
- Parameters:
context
- the context to evaluate- Returns:
- the most general type of value that can be set on this context, or
null
if the type information cannot be determined
-
getExpressionString
Description copied from interface:Expression
Returns the original string used to create this expression, unmodified.- Specified by:
getExpressionString
in interfaceExpression
- Returns:
- the original expression string
-
hashCode
public int hashCode() -
equals
-
toString
-