|
||||||||||
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 |
lineNumber, NO_ARGUMENTS, staticProperties |
Constructor Summary | |
SortExpression(Expression select,
SortKeyDefinition[] sortKeys)
|
Method Summary | |
Expression |
analyze(StaticContext env)
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)
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 |
Expression |
simplify()
Simplify an expression |
Methods inherited from class net.sf.saxon.expr.ComputedExpression |
computeDependencies, computeStaticProperties, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getDependencies, getIntrinsicDependencies, getLineNumber, getSourceLocator, getSpecialProperties, getSubExpressions, markTailFunctionCalls, promote, setLineNumber, typeError |
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 Expression simplify() throws XPathException
simplify
in interface Expression
simplify
in class ComputedExpression
XPathException
- if an error is discovered during expression
rewritingpublic Expression analyze(StaticContext env) throws XPathException
env
- the static context of the expression
XPathException
public int computeCardinality()
computeCardinality
in class ComputedExpression
public ItemType getItemType()
public int computeSpecialProperties()
computeSpecialProperties
in class ComputedExpression
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in interface Expression
iterate
in class ComputedExpression
context
- supplies the context for evaluation
XPathException
- if any dynamic error occurs evaluating the
expressionpublic void display(int level, NamePool pool)
Expression
level
- indentation level for this expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |