public interface ExpressionManager
extends org.mule.runtime.api.el.MuleExpressionLanguage
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_EXPRESSION_POSTFIX |
static String |
DEFAULT_EXPRESSION_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression)
Execute the expression returning the result.
|
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
org.mule.runtime.api.metadata.DataType expectedOutputType)
Evaluates an expression according to the global
BindingContext and the DataType of the expected result. |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
org.mule.runtime.api.metadata.DataType expectedOutputType,
org.mule.runtime.api.el.BindingContext context,
Event event)
Evaluates an expression according to a given
BindingContext, the global one, the DataType of the expected
result and an Event. |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
org.mule.runtime.api.metadata.DataType expectedOutputType,
org.mule.runtime.api.el.BindingContext context,
Event event,
FlowConstruct flowConstruct,
boolean failOnNull)
Evaluates an expression according to a given
BindingContext, the global one, the DataType of the expected
result and an Event. |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
Event event)
Execute the expression returning the result.
|
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
Event event,
org.mule.runtime.api.el.BindingContext context)
Execute the expression returning the result.
|
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
Event event,
FlowConstruct flowConstruct)
Execute the expression returning the result.
|
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
Event event,
FlowConstruct flowConstruct,
org.mule.runtime.api.el.BindingContext context)
Execute the expression returning the result.
|
boolean |
evaluateBoolean(String expression,
Event event,
FlowConstruct flowConstruct)
Evaluates an expression considering a
boolean as output. |
boolean |
evaluateBoolean(String expression,
Event event,
FlowConstruct flowConstruct,
boolean nullReturnsTrue,
boolean nonBooleanReturnsTrue)
Evaluates an expression considering a
boolean as output. |
Iterator<org.mule.runtime.api.metadata.TypedValue<?>> |
split(String expression,
Event event,
org.mule.runtime.api.el.BindingContext bindingContext)
|
Iterator<org.mule.runtime.api.metadata.TypedValue<?>> |
split(String expression,
Event event,
FlowConstruct flowConstruct,
org.mule.runtime.api.el.BindingContext bindingContext)
|
static final String DEFAULT_EXPRESSION_PREFIX
static final String DEFAULT_EXPRESSION_POSTFIX
org.mule.runtime.api.metadata.TypedValue evaluate(String expression) throws ExpressionRuntimeException
expression - the expression to be executedExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, Event event) throws ExpressionRuntimeException
This version of evaluate performs expression evaulation on an immutable event. Any Event or
InternalMessage mutation performed within the expression will impact within the context of
expression evaluation but will not mutated the event parameter.
expression - the expression to be executedevent - the current event being processedExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, Event event, FlowConstruct flowConstruct) throws ExpressionRuntimeException
This version of evaluate performs expression evaulation on an immutable event. Any Event or
InternalMessage mutation performed within the expression will impact within the context of
expression evaluation but will not mutated the event parameter.
expression - the expression to be executedevent - the current event being processedflowConstruct - the flow where the event is being processedExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, Event event, org.mule.runtime.api.el.BindingContext context) throws ExpressionRuntimeException
This version of evaluate performs expression evaulation on an immutable event. Any Event or
InternalMessage mutation performed within the expression will impact within the context of
expression evaluation but will not mutated the event parameter.
expression - the expression to be executedevent - the current event being processedcontext - the bindings to be consideredExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, Event event, FlowConstruct flowConstruct, org.mule.runtime.api.el.BindingContext context) throws ExpressionRuntimeException
This version of evaluate performs expression evaulation on an immutable event. Any Event or
InternalMessage mutation performed within the expression will impact within the context of
expression evaluation but will not mutated the event parameter.
expression - the expression to be executedevent - the current event being processedflowConstruct - the flow where the event is being processedcontext - the bindings to be consideredExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, org.mule.runtime.api.metadata.DataType expectedOutputType) throws ExpressionRuntimeException
BindingContext 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.ExpressionRuntimeException - if a problem occurs evaluating the expression or during transformationorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, org.mule.runtime.api.metadata.DataType expectedOutputType, org.mule.runtime.api.el.BindingContext context, Event event) throws ExpressionRuntimeException
BindingContext, the global one, the DataType of the expected
result and an Event.expression - the EL expressionexpectedOutputType - the expected output type so that automatic conversion can be performed for the resulting value
type.context - an expression binding context to considerevent - the current event to considerExpressionRuntimeException - if a problem occurs evaluating the expression or during transformationorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, org.mule.runtime.api.metadata.DataType expectedOutputType, org.mule.runtime.api.el.BindingContext context, Event event, FlowConstruct flowConstruct, boolean failOnNull) throws ExpressionRuntimeException
BindingContext, the global one, the DataType of the expected
result and an Event.expression - the EL expressionexpectedOutputType - the expected output type so that automatic conversion can be performed for the resulting value
type.context - an expression binding context to considerevent - the current event to considerflowConstruct - the flow where the event is being processedfailOnNull - indicates if should fail if the evaluation result is nullExpressionRuntimeException - if a problem occurs evaluating the expression or during transformationboolean evaluateBoolean(String expression, Event event, FlowConstruct flowConstruct) throws ExpressionRuntimeException
boolean as output. If the result cannot be clearly transformed or is
null, false will be returned.expression - a single expression to be evaluated and transformedevent - the Event to considerflowConstruct - the FlowConstruct to considertrue if the expression evaluated to that or "true", false otherwiseExpressionRuntimeException - if a problem occurs evaluating the expressionboolean evaluateBoolean(String expression, Event event, FlowConstruct flowConstruct, boolean nullReturnsTrue, boolean nonBooleanReturnsTrue) throws ExpressionRuntimeException
boolean as output.expression - a single expression to be evaluated and transformedevent - the Event to considerflowConstruct - the FlowConstruct to considernullReturnsTrue - whether or not a null outcome should be considered a truenonBooleanReturnsTrue - whether or not a non boolean outcome should be considered a truetrue if the expression evaluated to that, "true" or the above flags where considered, false otherwiseExpressionRuntimeException - if a problem occurs evaluating the expressionIterator<org.mule.runtime.api.metadata.TypedValue<?>> split(String expression, Event event, FlowConstruct flowConstruct, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
expression - the expression to be executedevent - the current event being processedflowConstruct - the flow where the event is being processedbindingContext - the bindings to considerExpressionRuntimeException - if a problem occurs evaluating the expressionIterator<org.mule.runtime.api.metadata.TypedValue<?>> split(String expression, Event event, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
expression - the expression to be executedevent - the current event being processedbindingContext - the bindings to considerExpressionRuntimeException - if a problem occurs evaluating the expressionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.