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
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-2014-2014 Pivotal. All Rights Reserved.