public interface ExpressionNode extends Expression
| Modifier and Type | Method and Description |
|---|---|
ExpressionOperatorTypes.NODE_KIND |
getKind()
Returns the type of the filter expression.
|
default boolean |
hasFunction(ExpressionOperatorTypes.FUNCTION function)
Checks whether the current filter expression contains a function.
|
default boolean |
hasOperator(ExpressionOperatorTypes.OPERATOR operator)
Checks whether an operator is used in the current filter expression.
|
default boolean |
hasProperty(String propertyName)
Checks whether the current
ExpressionNode represents a filter on a certain property. |
boolean |
isLeafUnit()
Checks whether the current
ExpressionNode is a leaf unit. |
default boolean |
isLiteralNode()
Checks whether the current node is a literal node.
|
default boolean |
isPropertyNode()
Checks whether the current node is a property.
|
getLeafUnitNodes, getNodesboolean isLeafUnit()
ExpressionNode is a leaf unit. A leaf unit is a node with at least one leaf node as its child.boolean value indicating whether the ExpressionNode is a leaf unitExpressionOperatorTypes.NODE_KIND getKind()
NODE_KIND indicating the type of the current nodedefault boolean isLiteralNode()
boolean value indicating whether the current node is a literaldefault boolean isPropertyNode()
Name eq 'John', Name is the property.boolean value indicating whether the current node is a propertydefault boolean hasProperty(String propertyName)
ExpressionNode represents a filter on a certain property.propertyName - Name of the propertyboolean value indicating whether the current ExpressionNode represents a filter on the specified propertydefault boolean hasOperator(ExpressionOperatorTypes.OPERATOR operator)
operator - Operator being searched in the filter expressiondefault boolean hasFunction(ExpressionOperatorTypes.FUNCTION function)
function - Function being searched in the filter expressionboolean value indicating whether the current filter expression contains the specified functionCopyright © 2020 SAP. All Rights Reserved.