net.sf.saxon.expr
public class TailExpression extends Expression
| Field Summary | |
|---|---|
| Expression | base |
| int | start |
| Constructor Summary | |
|---|---|
| TailExpression(Expression base, int start)
Construct a TailExpression, representing a filter expression of the form
$base[position() >= $start] | |
| Method Summary | |
|---|---|
| int | computeCardinality() |
| int | computeSpecialProperties() |
| Expression | copy()
Copy an expression. |
| boolean | equals(Object other)
Compare two expressions to see if they are equal |
| void | explain(ExpressionPresenter destination)
Diagnostic print of expression structure. |
| Expression | getBaseExpression()
Get the base expression (of which this expression returns the tail part of the value) |
| ItemType | getItemType(TypeHierarchy th) |
| int | getStart()
Get the start offset |
| int | hashCode() |
| SequenceIterator | iterate(XPathContext context) |
| Iterator<Expression> | iterateSubExpressions() |
| Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType) |
| Expression | promote(PromotionOffer offer, Expression parent) |
| boolean | replaceSubExpression(Expression original, Expression replacement)
Replace one subexpression by a replacement subexpression |
| Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType) |
Parameters: base the expression to be filtered start the position (1-based) of the first item to be included
Returns: the copy of the original expression
Parameters: other the other expression
Returns: true if the expressions are equivalent
Returns: the base expression
Returns: the one-based start offset (returns 2 if all but the first item is being selected)
Parameters: original the original subexpression replacement the replacement subexpression
Returns: true if the original subexpression is found