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 TypeMethodDescriptionboolean
Returns whether theExpressionNode
is a literal.boolean
isUnaryMinus
(ExpressionNode parent) Returns whether the givenExpressionNode
is a unary minus.Methods inherited from class org.springframework.data.mongodb.core.spel.ExpressionNode
from, from, getChild, getName, getValue, hasChildren, hasfirstChildNotOfType, isLogicalOperator, isMathematicalOperation, isOfType, iterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
isUnaryMinus
Returns whether the givenExpressionNode
is a unary minus.- Parameters:
parent
-- Returns:
-
isLiteral
public boolean isLiteral()Description copied from class:ExpressionNode
Returns whether theExpressionNode
is a literal.- Overrides:
isLiteral
in classExpressionNode
- Returns:
-