public class XMLDatatypeMathUtil extends Object
| Constructor and Description |
|---|
XMLDatatypeMathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.rdf4j.model.Literal |
compute(org.eclipse.rdf4j.model.Literal leftLit,
org.eclipse.rdf4j.model.Literal rightLit,
MathExpr.MathOp op)
Computes the result of applying the supplied math operator on the supplied left and right operand.
|
public static org.eclipse.rdf4j.model.Literal compute(org.eclipse.rdf4j.model.Literal leftLit, org.eclipse.rdf4j.model.Literal rightLit, MathExpr.MathOp op) throws ValueExprEvaluationException
leftLit - a datatype literalrightLit - a datatype literalop - a mathematical operator, as definied by MathExpr.MathOp.ValueExprEvaluationExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.