public interface ExpressionLanguage
ExpressionRuntimeException
before being re-thrown.Modifier and Type | Method and Description |
---|---|
<T> T |
evaluate(String expression)
Execute the expression returning the result.
|
<T> T |
evaluate(String expression,
Map<String,Object> vars)
Execute the expression returning the result.
|
<T> T |
evaluate(String expression,
MuleEvent event)
Execute the expression returning the result.
|
<T> T |
evaluate(String expression,
MuleEvent event,
Map<String,Object> vars)
Execute the expression returning the result.
|
<T> T |
evaluate(String expression,
MuleMessage message)
Deprecated.
|
<T> T |
evaluate(String expression,
MuleMessage message,
Map<String,Object> vars)
Deprecated.
|
boolean |
isValid(String expression)
Validates the expression returning true is the expression is valid, false otherwise..
|
void |
validate(String expression)
Validates the expression returning.
|
<T> T evaluate(String expression)
T
- the return type expectedexpression
- the expression to be executed<T> T evaluate(String expression, Map<String,Object> vars)
T
- the return type expectedexpression
- the expression to be executedvars
- a map of expression variables<T> T evaluate(String expression, MuleEvent event)
T
- the return type expectedexpression
- the expression to be executedevent
- the current event being processed<T> T evaluate(String expression, MuleEvent event, Map<String,Object> vars)
T
- the return type expectedexpression
- the expression to be executedevent
- the current event being processedvars
- a map of expression variablesboolean isValid(String expression)
expression
- void validate(String expression) throws InvalidExpressionException
ExpressionInvalidException
will be thrown is the All
implementors should should validate expression syntactically. Semantic validation is optional.expression
- InvalidExpressionException
@Deprecated <T> T evaluate(String expression, MuleMessage message)
evaluate(String, MuleEvent)
@Deprecated <T> T evaluate(String expression, MuleMessage message, Map<String,Object> vars)
evaluate(String, MuleEvent)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.