net.sf.saxon.expr
class ArithmeticExpression extends BinaryExpression
| Nested Class Summary | |
|---|---|
| static class | ArithmeticExpression.DateAndDuration
Inner class to handle addition or subtraction of a Date (or Time, or DateTime) and a Duration |
| static class | ArithmeticExpression.DateDifference
Inner class to handle subtraction of a Date (or Time, or DateTime) from another, to return a Duration |
| static class | ArithmeticExpression.DurationAddition
Inner class to handle addition and subtraction of two durations |
| static class | ArithmeticExpression.DurationDivision
Inner class to handle division of two durations to give a number |
| static class | ArithmeticExpression.DurationMultiplication
Inner class to handle multiplication (or division) of a duration by a number |
| static class | ArithmeticExpression.NumericArithmetic
Inner class to handle numeric arithmetic expressions |
| Constructor Summary | |
|---|---|
| ArithmeticExpression(Expression p1, int operator, Expression p2) | |
| Method Summary | |
|---|---|
| Item | evaluateItem(XPathContext context)
Evaluate the expression. |
| ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression, if this is known statically |
| Expression | typeCheck(StaticContext env, ItemType contextItemType)
Type-check the expression statically. |
Parameters: th