public interface ExpressionBuilder
| Modifier and Type | Method and Description |
|---|---|
Expression |
and(Expression left,
Expression right)
Joins two expressions using the
and binary operator. |
Expression |
createExpression(Expression left,
ExpressionOperatorTypes.BINARY_OPERATOR operator,
Expression right)
Creates a binary expression by combining two child expressions with an operator.
|
Expression |
createExpression(String path,
ExpressionOperatorTypes.BINARY_OPERATOR operator,
Object value)
Creates a binary expression that comprises of a PropertyNode, LiteralNode, and the operator.
|
Expression |
not(Expression filter)
Prepends the
not operator to the expression. |
Expression createExpression(String path, ExpressionOperatorTypes.BINARY_OPERATOR operator, Object value) throws FilterOptionException
Name eq 'John'. In this example, PropertyNode contains Name, LiteralNode contains 'John', and the operator is 'eq'.path - Name of the propertyoperator - Binary operator used to form the expressionvalue - Literal value used in the expressionFilterOptionException - If an error occurs while creating the binary expressionExpression createExpression(Expression left, ExpressionOperatorTypes.BINARY_OPERATOR operator, Expression right) throws FilterOptionException
left - One of the child expressions used to build the binary expressionoperator - Binary operator used to form the final expressionright - One of the child expressions used to build the binary expressionFilterOptionException - If an error occurs while creating the binary expressionExpression not(Expression filter)
not operator to the expression. For example, not (Name eq %27John%27).filter - Expression to be negatednot operator prepended to itExpression and(Expression left, Expression right)
and binary operator.left - One of the child expressions used to build the binary expressionright - One of the child expressions used to build the binary expressionCopyright © 2020 SAP. All Rights Reserved.