public class OperatorNode extends ExpressionNode
ExpressionNode
representing an operator.Modifier and Type | Method and Description |
---|---|
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.
|
from, from, getChild, getName, getValue, hasChildren, hasfirstChildNotOfType, isLiteral, isOfType, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public boolean isMathematicalOperation()
ExpressionNode
ExpressionNode
is a mathematical operation.isMathematicalOperation
in class ExpressionNode
public boolean isUnaryOperator()
public String getMongoOperator()
public boolean isUnaryMinus()
public ExpressionNode getLeft()
ExpressionNode
.public ExpressionNode getRight()
ExpressionNode
.Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.