public class AttributeNode extends Object implements ExpressionNode
Modifier and Type | Class and Description |
---|---|
static class |
AttributeNode.Item |
(package private) static class |
AttributeNode.IteratorHandler |
static class |
AttributeNode.VariableValueList |
Modifier and Type | Field and Description |
---|---|
private List<AttributeNode.Item> |
items |
private ExpressionNode |
value |
Constructor and Description |
---|
AttributeNode(ExpressionNode value,
List items) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Perform visitation of this node.
|
private static Object |
applyFunction(String function,
Object value) |
Object |
evaluate(Context context)
Evaluate the content of this node based on document object, and return that value.
|
private static Object |
evaluateFieldPath(String fieldPth,
Object value) |
private static Object |
evaluateFunction(String function,
Object value) |
BucketSet |
getBucketSet(BucketIdFactory factory)
Returns the set of bucket ids covered by this node.
|
List<AttributeNode.Item> |
getItems() |
OrderingSpecification |
getOrdering(int order)
If this document selection implies a specific ordering (using the orderdoc scheme),
return that specification.
|
ExpressionNode |
getValue() |
AttributeNode |
setValue(ExpressionNode value) |
String |
toString() |
private ExpressionNode value
private final List<AttributeNode.Item> items
public AttributeNode(ExpressionNode value, List items)
public ExpressionNode getValue()
public AttributeNode setValue(ExpressionNode value)
public List<AttributeNode.Item> getItems()
public BucketSet getBucketSet(BucketIdFactory factory)
ExpressionNode
getBucketSet
in interface ExpressionNode
factory
- The factory used by the current application.public Object evaluate(Context context)
ExpressionNode
evaluate
in interface ExpressionNode
context
- The document to evaluate over.public void accept(Visitor visitor)
ExpressionNode
accept
in interface ExpressionNode
visitor
- The visitor that wishes to visit the node.public OrderingSpecification getOrdering(int order)
ExpressionNode
getOrdering
in interface ExpressionNode
order
- The order in which we are looking to traverse the ordering (ASCENDING or DESCENDING)Copyright © 2017. All rights reserved.