Package com.yahoo.document.select.rule
Interface ExpressionNode
- All Known Implementing Classes:
ArithmeticNode
,AttributeNode
,ComparisonNode
,DocumentNode
,DocumentTypeNode
,EmbracedNode
,IdNode
,LiteralNode
,LogicNode
,NegationNode
,NowNode
,VariableNode
public interface ExpressionNode
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
Modifier and TypeMethodDescriptionvoid
Perform visitation of this node.Evaluate the content of this node based on document object, and return that value.getBucketSet
(BucketIdFactory factory) Returns the set of bucket ids covered by this node.
-
Method Details
-
evaluate
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
Returns the set of bucket ids covered by this node.- Parameters:
factory
- the factory used by the current application
-
accept
Perform visitation of this node.- Parameters:
visitor
- the visitor that wishes to visit the node
-