public interface Expression<T>
Modifier and Type | Method and Description |
---|---|
T |
getLeftOperand()
Get the left operand expression.
|
Operator |
getOperator()
Get the expression operator.
|
T |
getRightOperand()
Get the right operand expression.
|
List<Expression> |
merge(Expression left,
Expression right,
int precedence)
Merge expression with surrounding expressions.
|
void |
setLeftOperand(T left)
Set the expressions left operand.
|
void |
setRightOperand(T right)
Set the expressions right operand.
|
Predicate |
toPredicate()
Get the predicate representation of the expression.
|
List<Expression> merge(Expression left, Expression right, int precedence)
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.Predicate toPredicate() throws InvalidQueryException
InvalidQueryException
void setLeftOperand(T left)
left
- the left operandvoid setRightOperand(T right)
right
- the right operandT getLeftOperand()
T getRightOperand()
Operator getOperator()
Copyright © 2022 Apache Software Foundation. All rights reserved.