Package com.yahoo.document.select.rule
Class DocumentTypeNode
java.lang.Object
com.yahoo.document.select.rule.DocumentTypeNode
- All Implemented Interfaces:
ExpressionNode
A document type node which returns the document type if exactly the type specified or false otherwise:
For using the exact document type as a condition.
- Author:
- bratseth
-
Constructor Summary
-
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.getType()
toString()
-
Constructor Details
-
DocumentTypeNode
-
-
Method Details
-
getType
-
setType
-
getBucketSet
Description copied from interface:ExpressionNode
Returns the set of bucket ids covered by this node.- Specified by:
getBucketSet
in interfaceExpressionNode
- Parameters:
factory
- the factory used by the current application
-
evaluate
Description copied from interface:ExpressionNode
Evaluate the content of this node based on document object, and return that value.- Specified by:
evaluate
in interfaceExpressionNode
- Parameters:
context
- the document to evaluate over- Returns:
- the value of this
-
accept
Description copied from interface:ExpressionNode
Perform visitation of this node.- Specified by:
accept
in interfaceExpressionNode
- Parameters:
visitor
- the visitor that wishes to visit the node
-
toString
-