Spring Data MongoDB - Core

org.springframework.data.mongodb.core.spel
Class OperatorNode

java.lang.Object
  extended by org.springframework.data.mongodb.core.spel.ExpressionNode
      extended by 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

Method Summary
 ExpressionNode getLeft()
          Returns the left operand as ExpressionNode.
 String getMongoOperator()
          Returns the Mongo expression of the operator.
 ExpressionNode getRight()
          Returns the right operand as ExpressionNode.
 boolean isMathematicalOperation()
          Returns whether the ExpressionNode is a mathematical operation.
 boolean isUnaryMinus()
          Returns whether the operator is a unary minus, e.g. -1.
 boolean isUnaryOperator()
          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
 

Method Detail

isMathematicalOperation

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

Overrides:
isMathematicalOperation 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:

Spring Data MongoDB - Core

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.