public interface ExpressionLanguageSession extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees any resources used to maintain this context.
|
TypedValue<?> |
evaluate(String expression)
Evaluates an expression according to the parameters used during construction and the global bindings.
|
TypedValue<?> |
evaluate(String expression,
DataType expectedOutputType)
Evaluates an expression according to the parameters used during construction, the global bindings and the
DataType of
the expected result. |
TypedValue<?> |
evaluate(String expression,
long timeout)
Evaluates an expression according to the parameters used during construction and the global bindings.
|
TypedValue<?> |
evaluateLogExpression(String expression)
Evaluates an expression according to a given
BindingContext and the global one. |
Iterator<TypedValue<?>> |
split(String expression)
Splits using the specified expression.
|
TypedValue<?> evaluate(String expression) throws ExpressionExecutionException
expression - the EL expressionExpressionExecutionException - when an error occurs during evaluationTypedValue<?> evaluate(String expression, DataType expectedOutputType) throws ExpressionExecutionException
DataType of
the expected result.expression - the EL expressionexpectedOutputType - the expected output type so that automatic conversion can be performed for the resulting value
type.ExpressionExecutionException - or during transformation or during transformationTypedValue<?> evaluate(String expression, long timeout) throws ExpressionExecutionException
expression - the EL expressiontimeout - how long to wait for the expression to be evaluated, in milliseconds. If the evaluation takes more than this
time, an ExpressionExecutionException will be thrown.ExpressionExecutionException - when an error occurs during evaluationTypedValue<?> evaluateLogExpression(String expression) throws ExpressionExecutionException
BindingContext and the global one.
The evaluation of this script will do a best effort to avoid failing when the result value can not be represented in the corresponding format.
expression - the EL expressionExpressionExecutionException - when an error occurs during evaluationIterator<TypedValue<?>> split(String expression)
expression - the expression to be used to splitvoid close()
close in interface AutoCloseableCopyright © 2020 MuleSoft, Inc.. All rights reserved.