|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.saxon.expr.ComputedExpression
|
+--net.sf.saxon.expr.UnaryExpression
|
+--net.sf.saxon.sort.DocumentSorter
A DocumentSorter is an expression that sorts a sequence of nodes into document order.
| Field Summary |
| Fields inherited from class net.sf.saxon.expr.UnaryExpression |
operand |
| Fields inherited from class net.sf.saxon.expr.ComputedExpression |
locationId, staticProperties |
| Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| Constructor Summary | |
DocumentSorter(Expression base)
|
|
| Method Summary | |
Expression |
analyze(StaticContext env,
ItemType contextItemType)
Type-check the expression. |
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type). |
protected java.lang.String |
displayOperator(NamePool pool)
Give a string representation of the operator for use in diagnostics |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the expression. |
SequenceIterator |
iterate(XPathContext context)
Return an Iterator to iterate over the values of a sequence. |
Expression |
promote(PromotionOffer offer)
Promote this expression if possible |
Expression |
simplify(StaticContext env)
Simplify an expression |
| Methods inherited from class net.sf.saxon.expr.UnaryExpression |
computeCardinality, display, equals, getBaseExpression, getItemType, hashCode, iterateSubExpressions |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentSorter(Expression base)
| Method Detail |
public Expression simplify(StaticContext env)
throws XPathException
UnaryExpression
simplify in interface Expressionsimplify in class UnaryExpressionXPathException
public Expression analyze(StaticContext env,
ItemType contextItemType)
throws XPathException
UnaryExpression
analyze in interface Expressionanalyze in class UnaryExpressionenv - the static context of the expressioncontextItemType - the static type of "." at the point where this expression is invoked.
The parameter is set to null if it is known statically that the context item will be undefined.
If the type of the context item is not known statically, the argument is set to
Type.ITEM_TYPE
XPathExceptionpublic int computeSpecialProperties()
UnaryExpression
computeSpecialProperties in class UnaryExpression
public Expression promote(PromotionOffer offer)
throws XPathException
promote in interface Expressionpromote in class UnaryExpressionoffer - details of the offer, for example the offer to move
expressions that don't depend on the context to an outer level in
the containing expression
XPathException - if any error is detected
public SequenceIterator iterate(XPathContext context)
throws XPathException
ComputedExpression
iterate in interface Expressioniterate in class ComputedExpressioncontext - supplies the context for evaluation
XPathException - if any dynamic error occurs evaluating the
expression
public boolean effectiveBooleanValue(XPathContext context)
throws XPathException
ComputedExpression
effectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class ComputedExpressioncontext - The context in which the expression is to be evaluated
XPathException - if any dynamic error occurs evaluating the
expressionprotected java.lang.String displayOperator(NamePool pool)
displayOperator in class UnaryExpression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||