|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.spel.ExpressionNode
public class ExpressionNode
A value object for nodes in an expression. Allows iterating ove potentially available child ExpressionNodes.
| Constructor Summary | |
|---|---|
protected |
ExpressionNode(SpelNode node,
ExpressionState state)
Creates a new ExpressionNode from the given SpelNode and ExpressionState. |
| Method Summary | |
|---|---|
protected ExpressionNode |
from(SpelNode node)
Creates a new ExpressionNode from the given SpelNode. |
static ExpressionNode |
from(SpelNode node,
ExpressionState state)
Factory method to create ExpressionNode's according to the given SpelNode and
ExpressionState. |
ExpressionNode |
getChild(int index)
Returns the child ExpressionNode with the given index. |
String |
getName()
Returns the name of the ExpressionNode. |
Object |
getValue()
Returns the value of the current node. |
boolean |
hasChildren()
Returns whether the current node has child nodes. |
boolean |
hasfirstChildNotOfType(Class<?> type)
Returns whether the ExpressionNode has a first child node that is not of the given type. |
boolean |
isLiteral()
Returns whether the ExpressionNode is a literal. |
boolean |
isMathematicalOperation()
Returns whether the ExpressionNode is a mathematical operation. |
boolean |
isOfType(Class<?> type)
Returns whether the current ExpressionNode is backed by the given type. |
Iterator<ExpressionNode> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ExpressionNode(SpelNode node,
ExpressionState state)
ExpressionNode from the given SpelNode and ExpressionState.
node - must not be null.state - must not be null.| Method Detail |
|---|
public static ExpressionNode from(SpelNode node,
ExpressionState state)
ExpressionNode's according to the given SpelNode and
ExpressionState.
node - state - must not be null.
ExpressionNode for the given SpelNode or null if null was given
for the SpelNode.public String getName()
ExpressionNode.
public boolean isOfType(Class<?> type)
ExpressionNode is backed by the given type.
type - must not be null.
public boolean isMathematicalOperation()
ExpressionNode is a mathematical operation.
public boolean isLiteral()
ExpressionNode is a literal.
public Object getValue()
public boolean hasChildren()
public ExpressionNode getChild(int index)
ExpressionNode with the given index.
index - must not be negative.
public boolean hasfirstChildNotOfType(Class<?> type)
ExpressionNode has a first child node that is not of the given type.
type - must not be null.
protected ExpressionNode from(SpelNode node)
ExpressionNode from the given SpelNode.
node -
public Iterator<ExpressionNode> iterator()
iterator in interface Iterable<ExpressionNode>
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||