Package com.yahoo.document.select.rule
Class ArithmeticNode
java.lang.Object
com.yahoo.document.select.rule.ArithmeticNode
- All Implemented Interfaces:
ExpressionNode
- Author:
- Simon Thoresen Hult
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform visitation of this node.add
(String operator, ExpressionNode 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.getItems()
operatorToString
(int operator) toString()
-
Field Details
-
NOP
public static final int NOP- See Also:
-
ADD
public static final int ADD- See Also:
-
SUB
public static final int SUB- See Also:
-
MOD
public static final int MOD- See Also:
-
DIV
public static final int DIV- See Also:
-
MUL
public static final int MUL- See Also:
-
-
Constructor Details
-
ArithmeticNode
public ArithmeticNode()
-
-
Method Details
-
add
-
getItems
-
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
-
toString
-
operatorToString
-
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
-