net.sf.saxon.sort

Class DocumentSorter

public class DocumentSorter extends UnaryExpression

A DocumentSorter is an expression that sorts a sequence of nodes into document order.
Constructor Summary
DocumentSorter(Expression base)
Method Summary
intcomputeSpecialProperties()
protected StringdisplayOperator(NamePool pool)
Give a string representation of the operator for use in diagnostics
booleaneffectiveBooleanValue(XPathContext context)
SequenceIteratoriterate(XPathContext context)
Expressionoptimize(Optimizer opt, StaticContext env, ItemType contextItemType)
Expressionpromote(PromotionOffer offer)
Promote this expression if possible
Expressionsimplify(StaticContext env)

Constructor Detail

DocumentSorter

public DocumentSorter(Expression base)

Method Detail

computeSpecialProperties

public int computeSpecialProperties()

displayOperator

protected String displayOperator(NamePool pool)
Give a string representation of the operator for use in diagnostics

Returns: the operator, as a string

effectiveBooleanValue

public boolean effectiveBooleanValue(XPathContext context)

iterate

public SequenceIterator iterate(XPathContext context)

optimize

public Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType)

promote

public Expression promote(PromotionOffer offer)
Promote this expression if possible

simplify

public Expression simplify(StaticContext env)