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