public interface ExpressionLanguage
Modifier and Type | Method and Description |
---|---|
void |
addGlobalBindings(BindingContext bindingContext)
Includes the bindings in a given
BindingContext as global ones, that should not change often and should be considered
for all subsequent operations. |
TypedValue<?> |
evaluate(String expression,
BindingContext context)
Evaluates an expression according to a given
BindingContext and the global one. |
TypedValue<?> |
evaluate(String expression,
DataType expectedOutputType,
BindingContext context)
Evaluates an expression according to a given
BindingContext , the global one and the DataType of the expected
result. |
TypedValue<?> |
evaluateLogExpression(String expression,
BindingContext context)
Evaluates an expression according to a given
BindingContext and the global one. |
Iterator<TypedValue<?>> |
split(String expression,
BindingContext context)
Splits using the specified expression.
|
ValidationResult |
validate(String expression)
Verifies whether an expression is valid or not syntactically.
|
void addGlobalBindings(BindingContext bindingContext)
BindingContext
as global ones, that should not change often and should be considered
for all subsequent operations.bindingContext
- the context containing the bindings to addTypedValue<?> evaluate(String expression, BindingContext context) throws ExpressionExecutionException
BindingContext
and the global one.expression
- the EL expressioncontext
- the current dynamic binding context to considerExpressionExecutionException
- when an error occurs during evaluationTypedValue<?> evaluate(String expression, DataType expectedOutputType, BindingContext context) throws ExpressionExecutionException
BindingContext
, the global one and the 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.context
- the current dynamic binding context to considerExpressionExecutionException
- or during transformation or during transformationTypedValue<?> evaluateLogExpression(String expression, BindingContext context) 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 expressioncontext
- the current dynamic binding context to considerExpressionExecutionException
- when an error occurs during evaluationValidationResult validate(String expression)
expression
- to be validatedValidationResult
indicating whether the validation was successful or notIterator<TypedValue<?>> split(String expression, BindingContext context)
expression
- the expression to be used to splitcontext
- the current dynamic binding context to considerCopyright © 2018. All rights reserved.