Package io.atlasmap.expression
Interface Expression
-
- All Known Subinterfaces:
BooleanExpression
- All Known Implementing Classes:
ArithmeticExpression,BinaryExpression,ComparisonExpression,ConstantExpression,LogicExpression,UnaryExpression,VariableExpression
public interface ExpressionParses and evaluates a simple expression language. This was originally based on the selector expression language found in ActiveMQ. It was modified so that it's supports custom functions and it's comparison expressions were less SQL like, and more script like.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static voidclearCache()Clears the cache.io.atlasmap.v2.Fieldevaluate(ExpressionContext expressionContext)Execute the expression against the given context.static Expressionparse(String expessionText, FunctionResolver functionResolver)Parses the expression text.
-
-
-
Method Detail
-
evaluate
io.atlasmap.v2.Field evaluate(ExpressionContext expressionContext) throws ExpressionException
Execute the expression against the given context.- Parameters:
expressionContext-ExpressionContext- Returns:
Fieldrepresents a result- Throws:
ExpressionException- If evaluation fails
-
parse
static Expression parse(String expessionText, FunctionResolver functionResolver) throws ExpressionException
Parses the expression text.- Parameters:
expessionText- expression textfunctionResolver- function resolver- Returns:
- result
- Throws:
ExpressionException- unexpected error
-
clearCache
static void clearCache()
Clears the cache.
-
-