Package io.atlasmap.expression
Interface Expression
- All Known Subinterfaces:
BooleanExpression
- All Known Implementing Classes:
ArithmeticExpression
,BinaryExpression
,ComparisonExpression
,ConstantExpression
,LogicExpression
,UnaryExpression
,VariableExpression
public interface Expression
Parses 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.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
evaluate
(ExpressionContext expressionContext) Execute the expression against the given context.static Expression
parse
(String expessionText, FunctionResolver functionResolver)
-
Field Details
-
CACHE
-
-
Method Details
-
evaluate
Execute the expression against the given context.- Parameters:
expressionContext
-ExpressionContext
- Returns:
Field
represents a result- Throws:
ExpressionException
- If evaluation fails
-
parse
static Expression parse(String expessionText, FunctionResolver functionResolver) throws ExpressionException - Throws:
ExpressionException
-
clearCache
static void clearCache()
-