public class ExpressionNode extends Object implements Iterable<ExpressionNode>
ExpressionNodes.| Modifier | Constructor and Description |
|---|---|
protected |
ExpressionNode(SpelNode node,
ExpressionState state)
|
| Modifier and Type | Method and Description |
|---|---|
protected ExpressionNode |
from(SpelNode node)
Creates a new
ExpressionNode from the given SpelNode. |
static ExpressionNode |
from(SpelNode node,
ExpressionState state)
|
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 |
isLogicalOperator()
Returns whether the
ExpressionNode is a logical conjunction operation like &&, ||. |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected ExpressionNode(SpelNode node, ExpressionState state)
node - must not be null.state - must not be null.public static ExpressionNode from(SpelNode node, ExpressionState state)
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 isLogicalOperator()
ExpressionNode is a logical conjunction operation like &&, ||.public boolean isLiteral()
ExpressionNode is a literal.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>Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.