net.sf.saxon.expr
Class AppendExpression
java.lang.Object
net.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.BinaryExpression
net.sf.saxon.expr.AppendExpression
- All Implemented Interfaces:
- Serializable, Expression
public final class AppendExpression
- extends BinaryExpression
An expression representing a sequence that is the concatenation of two given sequences.
This implements the "comma" operator in XPath sequence expressions.
- See Also:
- Serialized Form
Methods inherited from class net.sf.saxon.expr.ComputedExpression |
computeDependencies, computeSpecialProperties, computeStaticProperties, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getDependencies, getIntrinsicDependencies, getLineNumber, getSpecialProperties, markTailFunctionCalls, setLineNumber, typeError |
AppendExpression
public AppendExpression(Expression p1,
int op,
Expression p2)
- Constructor
- Parameters:
p1
- the left-hand operandop
- the operator (always ",")p2
- the right-hand operand
getItemType
public final ItemType getItemType()
- Determine the data type of the items returned by this expression
- Returns:
- the data type
computeCardinality
public final int computeCardinality()
- Determine the static cardinality of the expression
- Overrides:
computeCardinality
in class BinaryExpression
simplify
public Expression simplify()
throws XPathException
- Simplify the expression
- Specified by:
simplify
in interface Expression
- Overrides:
simplify
in class BinaryExpression
- Returns:
- the simplified expression
- Throws:
XPathException
- if an error is discovered during expression
rewriting
iterate
public SequenceIterator iterate(XPathContext c)
throws XPathException
- Iterate over the value of the expression.
- Specified by:
iterate
in interface Expression
- Overrides:
iterate
in class ComputedExpression
- Parameters:
c
- The context for evaluation
- Returns:
- a SequenceIterator representing the concatenation of the two operands
- Throws:
XPathException
- if any dynamic error occurs evaluating the
expression