public class LogicalExpression extends AbstractExpression<Expression>
| Constructor and Description |
|---|
LogicalExpression(LogicalOperator op)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Expression> |
merge(Expression left,
Expression right,
int precedence)
Merge expression with surrounding expressions.
|
Predicate |
toPredicate()
Get the predicate representation of the expression.
|
defaultMerge, getLeftOperand, getOperator, getRightOperand, setLeftOperand, setRightOperandpublic LogicalExpression(LogicalOperator op)
op - the logical operator of the expressionpublic Predicate toPredicate() throws InvalidQueryException
ExpressionInvalidQueryExceptionpublic List<Expression> merge(Expression left, Expression right, int precedence)
Expressionmerge in interface Expression<Expression>merge in class AbstractExpression<Expression>left - the preceding expressionright - the following expressionprecedence - the precedence level being merged. Only expressions at this precedence level
should be merged. Others should simply return the left expression, themselves and
the right expression in that order.Copyright © 2022 Apache Software Foundation. All rights reserved.