Spring Data MongoDB - Core

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

java.lang.Object
  extended by org.springframework.data.mongodb.core.spel.ExpressionNode
      extended by org.springframework.data.mongodb.core.spel.LiteralNode
All Implemented Interfaces:
Iterable<ExpressionNode>

public class LiteralNode
extends ExpressionNode

A node representing a literal in an expression.

Author:
Oliver Gierke

Method Summary
 boolean isLiteral()
          Returns whether the ExpressionNode is a literal.
 boolean isUnaryMinus(ExpressionNode parent)
          Returns whether the given ExpressionNode is a unary minus.
 
Methods inherited from class org.springframework.data.mongodb.core.spel.ExpressionNode
from, from, getChild, getName, getValue, hasChildren, hasfirstChildNotOfType, isMathematicalOperation, isOfType, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isUnaryMinus

public boolean isUnaryMinus(ExpressionNode parent)
Returns whether the given ExpressionNode is a unary minus.

Parameters:
parent -
Returns:

isLiteral

public boolean isLiteral()
Description copied from class: ExpressionNode
Returns whether the ExpressionNode is a literal.

Overrides:
isLiteral in class ExpressionNode
Returns:

Spring Data MongoDB - Core

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