public class NotLogicalExpression extends LogicalExpression
| Constructor and Description |
|---|
NotLogicalExpression(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 NotLogicalExpression(LogicalOperator op)
op - the logical operatorpublic List<Expression> merge(Expression left, Expression right, int precedence)
Expressionmerge in interface Expression<Expression>merge in class LogicalExpressionleft - 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.public Predicate toPredicate() throws InvalidQueryException
ExpressiontoPredicate in interface Expression<Expression>toPredicate in class LogicalExpressionInvalidQueryExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.