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.booleanReturns whether theExpressionNodeis a logical conjunction operation like&&, ||.booleanReturns whether theExpressionNodeis a mathematical operation.booleanReturns whether the operator is a unary minus, e.g. -1.booleanReturns 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, iteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
isMathematicalOperation
public boolean isMathematicalOperation()Description copied from class:ExpressionNodeReturns whether theExpressionNodeis a mathematical operation.- Overrides:
isMathematicalOperationin classExpressionNode- Returns:
-
isLogicalOperator
public boolean isLogicalOperator()Description copied from class:ExpressionNodeReturns whether theExpressionNodeis a logical conjunction operation like&&, ||.- Overrides:
isLogicalOperatorin 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:
-