|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
net.sf.saxon.sort.SortExpression
public class 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, 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 Expressionsimplify in class ComputedExpressionXPathException - if an error is discovered during expression
rewriting
public Expression analyze(StaticContext env)
throws XPathException
env - the static context of the expression
XPathException - if an error is discovered during this phase
(typically a type error)public 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)
Expression
level - indentation level for this expression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||