com.icl.saxon.expr
class UnionExpression extends NodeSetExpression
Field Summary | |
---|---|
protected Expression | p1 |
protected Expression | p2 |
Constructor Summary | |
---|---|
UnionExpression(Expression p1, Expression p2)
Constructor |
Method Summary | |
---|---|
void | display(int level)
Diagnostic print of expression structure |
NodeEnumeration | enumerate(Context c, boolean sort)
Evaluate the union expression. |
int | getDependencies()
Determine which aspects of the context the expression depends on. |
boolean | isContextDocumentNodeSet()
Determine, in the case of an expression whose data type is Value.NODESET,
whether all the nodes in the node-set are guaranteed to come from the same
document as the context node. |
Expression | reduce(int dependencies, Context context)
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context. |
Expression | simplify()
Simplify an expression |
Parameters: p1 the left-hand operand p2 the right-hand operand
Parameters: c The context for evaluation sort Request the nodes in document order (they will be, regardless)
Returns: a NodeSetValue representing the union of the two operands
Parameters: dependencies The dependencies to be removed context The context to be used for the partial evaluation
Returns: a new expression that does not have any of the specified dependencies
Returns: the simplified expression