|
||||||||||
| 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.sort.SortExpression
Expression equivalent to the imaginary syntax expr sortby (sort-key)+
| Field Summary |
| 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 | |
SortExpression(Expression select,
SortKeyDefinition[] sortKeys)
|
|
| Method Summary | |
Expression |
analyze(StaticContext env,
ItemType contextItemType)
Type-check the expression |
int |
computeCardinality()
Determine the static cardinality |
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type). |
void |
display(int level,
NamePool pool,
java.io.PrintStream out)
Diagnostic print of expression structure. |
ItemType |
getItemType()
Determine the data type of the items returned by the expression, if possible |
SequenceIterator |
iterate(XPathContext context)
Enumerate the results of the expression |
java.util.Iterator |
iterateSubExpressions()
Get the immediate sub-expressions of this expression. |
Expression |
simplify(StaticContext env)
Simplify an expression |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SortExpression(Expression select,
SortKeyDefinition[] sortKeys)
| Method Detail |
public java.util.Iterator iterateSubExpressions()
iterateSubExpressions in interface ExpressioniterateSubExpressions in class ComputedExpression
public Expression simplify(StaticContext env)
throws XPathException
simplify in interface Expressionsimplify in class ComputedExpressionXPathException - if an error is discovered during expression
rewriting
public Expression analyze(StaticContext env,
ItemType contextItemType)
throws XPathException
env - 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 computeCardinality()
computeCardinality in class ComputedExpressionpublic ItemType getItemType()
public int computeSpecialProperties()
computeSpecialProperties in class ComputedExpression
public SequenceIterator iterate(XPathContext context)
throws XPathException
iterate in interface Expressioniterate in class ComputedExpressioncontext - supplies the context for evaluation
XPathException - if any dynamic error occurs evaluating the
expression
public void display(int level,
NamePool pool,
java.io.PrintStream out)
Expression
level - indentation level for this expressionpool - NamePool used to expand any names appearing in the expressionout - Output destination
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||