net.sf.saxon.expr

Class ArithmeticExpression.NumericArithmetic

public static class ArithmeticExpression.NumericArithmetic extends ArithmeticExpression

Inner class to handle numeric arithmetic expressions
Field Summary
booleanbackwardsCompatible
Constructor Summary
NumericArithmetic(Expression p1, int operator, Expression p2)
Method Summary
static ItemdoArithmetic(Expression operand0, int operator, Expression operand1, XPathContext context, boolean backwardsCompatible)
ItemevaluateItem(XPathContext context)
Evaluate the expression.
voidsetBackwardsCompatible(boolean flag)

Field Detail

backwardsCompatible

boolean backwardsCompatible

Constructor Detail

NumericArithmetic

public NumericArithmetic(Expression p1, int operator, Expression p2)

Method Detail

doArithmetic

public static Item doArithmetic(Expression operand0, int operator, Expression operand1, XPathContext context, boolean backwardsCompatible)

evaluateItem

public Item evaluateItem(XPathContext context)
Evaluate the expression.

setBackwardsCompatible

public void setBackwardsCompatible(boolean flag)