com.icl.saxon.expr
Class ArithmeticExpression
(package private) class ArithmeticExpression
Arithmetic Expression: a numeric expression consisting of the sum, difference,
product, quotient, or modulus of two numeric expressions
containsReferences, display, enumerate, evaluate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getDataType, getDependencies, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, reduce, setStaticContext, simplify, usesCurrent |
ArithmeticExpression
public ArithmeticExpression()
Default constructor
ArithmeticExpression
public ArithmeticExpression(Expression p1,
int operator,
Expression p2) Create a binary expression identifying the two operands and the operator
p1 - the left-hand operandp2 - the right-hand operand
getDataType
public int getDataType()
Determine the data type of the expression, if possible
- getDataType in interface Expression
reduce
public Expression reduce(int dependencies,
Context context)
throws XPathException Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context.
- reduce in interface Expression
dependencies - The dependencies to be removedcontext - The context to be used for the partial evaluation
- a new expression that does not have any of the specified
dependencies