Class OperatorNode

java.lang.Object
org.springframework.data.mongodb.core.spel.ExpressionNode
org.springframework.data.mongodb.core.spel.OperatorNode
All Implemented Interfaces:
Iterable<ExpressionNode>

public class OperatorNode extends ExpressionNode
An ExpressionNode representing an operator.
Author:
Oliver Gierke, Thomas Darimont, Christoph Strobl, Mark Paluch
  • Method Details

    • isMathematicalOperation

      public boolean isMathematicalOperation()
      Description copied from class: ExpressionNode
      Returns whether the ExpressionNode is a mathematical operation.
      Overrides:
      isMathematicalOperation in class ExpressionNode
      Returns:
    • isLogicalOperator

      public boolean isLogicalOperator()
      Description copied from class: ExpressionNode
      Returns whether the ExpressionNode is a logical conjunction operation like &&, ||.
      Overrides:
      isLogicalOperator in class ExpressionNode
      Returns:
    • isUnaryOperator

      public boolean isUnaryOperator()
      Returns whether the operator is unary.
      Returns:
    • getMongoOperator

      public String 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

      public ExpressionNode getLeft()
      Returns the left operand as ExpressionNode.
      Returns:
    • getRight

      public ExpressionNode getRight()
      Returns the right operand as ExpressionNode.
      Returns: