public interface ExpressionFunction
ExpressionLanguage.
Allows to define the parameter list expected and the return type so that validations can be applied before and after execution
by the ExpressionLanguage. Thus, it is not necessary for implementations to validate the input.| Modifier and Type | Method and Description |
|---|---|
Object |
call(Object[] parameters,
BindingContext context)
Function logic to be executed.
|
List<FunctionParameter> |
parameters()
Indicates the parameters this function takes.
|
Optional<DataType> |
returnType()
Indicates the return type, if any.
|
Object call(Object[] parameters, BindingContext context)
parameters - array of parameters that should match the indicated ones in parameters().context - the current BindingContext at the time of execution.returnType().Optional<DataType> returnType()
Object in
call(Object[], BindingContext) and be empty if null is returned. This will be validated before execution.List<FunctionParameter> parameters()
call(Object[], BindingContext). This will be validated before execution.List of FunctionParametersCopyright © 2017 MuleSoft, Inc.. All rights reserved.