Class NumericOperator
java.lang.Object
com.schibsted.spt.data.jslt.impl.AbstractNode
com.schibsted.spt.data.jslt.impl.AbstractOperator
com.schibsted.spt.data.jslt.impl.NumericOperator
- All Implemented Interfaces:
ExpressionNode
- Direct Known Subclasses:
DivideOperator, MinusOperator, MultiplyOperator, PlusOperator
-
Field Summary
Fields inherited from class AbstractOperator
left, rightFields inherited from class AbstractNode
location -
Constructor Summary
ConstructorsConstructorDescriptionNumericOperator(ExpressionNode left, ExpressionNode right, String name, Location location) -
Method Summary
Methods inherited from class AbstractOperator
apply, computeMatchContexts, dump, getChildren, getLeft, getOperator, getRight, optimize, toStringMethods inherited from class AbstractNode
getLocation, prepare
-
Constructor Details
-
NumericOperator
-
-
Method Details
-
perform
public com.fasterxml.jackson.databind.JsonNode perform(com.fasterxml.jackson.databind.JsonNode v1, com.fasterxml.jackson.databind.JsonNode v2) - Specified by:
performin classAbstractOperator
-
perform
protected abstract double perform(double v1, double v2) -
perform
protected abstract long perform(long v1, long v2)
-