Class OperatorNode
java.lang.Object
org.springframework.data.mongodb.core.spel.ExpressionNode
org.springframework.data.mongodb.core.spel.OperatorNode
- All Implemented Interfaces:
Iterable<ExpressionNode>
An
ExpressionNode
representing an operator.- Author:
- Oliver Gierke, Thomas Darimont, Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptiongetLeft()
Returns the left operand asExpressionNode
.Returns the Mongo expression of the operator.getRight()
Returns the right operand asExpressionNode
.boolean
Returns whether theExpressionNode
is a logical conjunction operation like&&, ||
.boolean
Returns whether theExpressionNode
is a mathematical operation.boolean
Returns whether the operator is a unary minus, e.g. -1.boolean
Returns whether the operator is unary.Methods inherited from class org.springframework.data.mongodb.core.spel.ExpressionNode
from, from, getChild, getName, getValue, hasChildren, hasfirstChildNotOfType, isLiteral, isOfType, iterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
isMathematicalOperation
public boolean isMathematicalOperation()Description copied from class:ExpressionNode
Returns whether theExpressionNode
is a mathematical operation.- Overrides:
isMathematicalOperation
in classExpressionNode
- Returns:
-
isLogicalOperator
public boolean isLogicalOperator()Description copied from class:ExpressionNode
Returns whether theExpressionNode
is a logical conjunction operation like&&, ||
.- Overrides:
isLogicalOperator
in classExpressionNode
- Returns:
-
isUnaryOperator
public boolean isUnaryOperator()Returns whether the operator is unary.- Returns:
-
getMongoOperator
Returns the Mongo expression of the operator.- Returns:
-
isUnaryMinus
public boolean isUnaryMinus()Returns whether the operator is a unary minus, e.g. -1.- Returns:
-
getLeft
Returns the left operand asExpressionNode
.- Returns:
-
getRight
Returns the right operand asExpressionNode
.- Returns:
-