Package com.yahoo.document.select.rule
Interface ExpressionNode
-
- All Known Implementing Classes:
ArithmeticNode
,AttributeNode
,ComparisonNode
,DocumentNode
,EmbracedNode
,IdNode
,LiteralNode
,LogicNode
,NegationNode
,NowNode
,VariableNode
public interface ExpressionNode
This is the interface of all expression nodes. It declares the methods requires by all expression nodes to maintain a working document selector language.- Author:
- Simon Thoresen Hult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(Visitor visitor)
Perform visitation of this node.Object
evaluate(Context doc)
Evaluate the content of this node based on document object, and return that value.BucketSet
getBucketSet(BucketIdFactory factory)
Returns the set of bucket ids covered by this node.
-
-
-
Method Detail
-
evaluate
Object evaluate(Context doc)
Evaluate the content of this node based on document object, and return that value.- Parameters:
doc
- the document to evaluate over.- Returns:
- the value of this.
-
getBucketSet
BucketSet getBucketSet(BucketIdFactory factory)
Returns the set of bucket ids covered by this node.- Parameters:
factory
- the factory used by the current application.
-
accept
void accept(Visitor visitor)
Perform visitation of this node.- Parameters:
visitor
- the visitor that wishes to visit the node.
-
-