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, rightFields inherited from interface io.atlasmap.expression.Expression
CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanExpressioncreateAND(BooleanExpression lvalue, BooleanExpression rvalue) static BooleanExpressioncreateOR(BooleanExpression lvalue, BooleanExpression rvalue) abstract Fieldevaluate(ExpressionContext expressionContext) Execute the expression against the given context.booleanmatches(ExpressionContext message) Methods inherited from class io.atlasmap.expression.internal.BinaryExpression
equals, getExpressionSymbol, getLeft, getRight, hashCode, setLeft, setRight, toString
-
Constructor Details
-
LogicExpression
- Parameters:
left- leftBooleanExpressionright- rightBooleanExpression
-
-
Method Details
-
createOR
-
createAND
-
evaluate
Description copied from interface:ExpressionExecute the expression against the given context.- Specified by:
evaluatein interfaceExpression- Parameters:
expressionContext-ExpressionContext- Returns:
Fieldrepresents a result- Throws:
ExpressionException- If evaluation fails
-
matches
- Specified by:
matchesin interfaceBooleanExpression- Parameters:
message- expression context- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
ExpressionException- exception
-