Package io.atlasmap.expression.internal
Class LogicExpression
java.lang.Object
io.atlasmap.expression.internal.BinaryExpression
io.atlasmap.expression.internal.LogicExpression
- All Implemented Interfaces:
Expression
,BooleanExpression
A filter performing a comparison of two objects.
- Version:
- $Revision: 1.2 $
-
Field Summary
Fields inherited from class io.atlasmap.expression.internal.BinaryExpression
left, right
Fields inherited from interface io.atlasmap.expression.Expression
CACHE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanExpression
createAND
(BooleanExpression lvalue, BooleanExpression rvalue) static BooleanExpression
createOR
(BooleanExpression lvalue, BooleanExpression rvalue) abstract Field
evaluate
(ExpressionContext expressionContext) Execute the expression against the given context.boolean
matches
(ExpressionContext message) Methods inherited from class io.atlasmap.expression.internal.BinaryExpression
equals, getExpressionSymbol, getLeft, getRight, hashCode, setLeft, setRight, toString
-
Constructor Details
-
LogicExpression
- Parameters:
left
- leftBooleanExpression
right
- rightBooleanExpression
-
-
Method Details
-
createOR
-
createAND
-
evaluate
Description copied from interface:Expression
Execute the expression against the given context.- Specified by:
evaluate
in interfaceExpression
- Parameters:
expressionContext
-ExpressionContext
- Returns:
Field
represents a result- Throws:
ExpressionException
- If evaluation fails
-
matches
- Specified by:
matches
in interfaceBooleanExpression
- Parameters:
message
- expression context- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
ExpressionException
- exception
-