Class LiteralNode
java.lang.Object
org.springframework.data.mongodb.core.spel.ExpressionNode
org.springframework.data.mongodb.core.spel.LiteralNode
- All Implemented Interfaces:
Iterable<ExpressionNode>
A node representing a literal in an expression.
- Author:
- Oliver Gierke, Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether theExpressionNodeis a literal.booleanisUnaryMinus(@Nullable ExpressionNode parent) Returns whether the givenExpressionNodeis a unary minus.Methods inherited from class ExpressionNode
from, from, getChild, getName, getValue, hasChildren, hasfirstChildNotOfType, isLogicalOperator, isMathematicalOperation, isOfType, iteratorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
isUnaryMinus
Returns whether the givenExpressionNodeis a unary minus.- Parameters:
parent-- Returns:
-
isLiteral
public boolean isLiteral()Description copied from class:ExpressionNodeReturns whether theExpressionNodeis a literal.- Overrides:
isLiteralin classExpressionNode- Returns:
-