|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.flwor.Clause net.sf.saxon.expr.flwor.OrderByClause
public class OrderByClause
This class represents an "order by" clause in a FLWOR expression
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.flwor.Clause |
---|
COUNT, FOR, GROUPBYCLAUSE, LET, ORDERBYCLAUSE, WHERE, WINDOW |
Constructor Summary | |
---|---|
OrderByClause(SortKeyDefinition[] sortKeys,
TupleExpression tupleExpression)
|
Method Summary | |
---|---|
OrderByClause |
copy()
|
AtomicValue |
evaluateSortKey(int n,
XPathContext c)
Callback for evaluating the sort keys |
void |
explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
AtomicComparer[] |
getAtomicComparers()
|
int |
getClauseKey()
Get a keyword identifying what kind of clause this is |
TuplePull |
getPullStream(TuplePull base,
XPathContext context)
Get a tuple stream that implements the functionality of this clause, taking its input from another tuple stream which this clause modifies |
TuplePush |
getPushStream(TuplePush destination,
XPathContext context)
Get a push-mode tuple stream that implements the functionality of this clause, supplying its output to another tuple stream |
SortKeyDefinition[] |
getSortKeyDefinitions()
|
void |
processSubExpressions(ExpressionProcessor processor)
Process the subexpressions of this clause |
String |
toString()
|
void |
typeCheck(ExpressionVisitor visitor)
Type-check the expression |
Methods inherited from class net.sf.saxon.expr.flwor.Clause |
---|
gatherVariableReferences, getRangeVariables, optimize, refineVariableType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OrderByClause(SortKeyDefinition[] sortKeys, TupleExpression tupleExpression)
Method Detail |
---|
public int getClauseKey()
Clause
getClauseKey
in class Clause
public OrderByClause copy()
copy
in class Clause
public SortKeyDefinition[] getSortKeyDefinitions()
public AtomicComparer[] getAtomicComparers()
public TuplePull getPullStream(TuplePull base, XPathContext context)
getPullStream
in class Clause
base
- the input tuple streamcontext
-
public TuplePush getPushStream(TuplePush destination, XPathContext context)
getPushStream
in class Clause
destination
- the output tuple streamcontext
-
public void processSubExpressions(ExpressionProcessor processor) throws XPathException
processSubExpressions
in class Clause
processor
- the expression processor used to process the subexpressions
XPathException
- if any error is detectedpublic void typeCheck(ExpressionVisitor visitor) throws XPathException
typeCheck
in class Clause
visitor
- the ExpressionVisitor, providing access to static context information
XPathException
- if any error is detectedpublic void explain(ExpressionPresenter out)
explain
in class Clause
out
- the expression presenter used to display the structurepublic String toString()
toString
in class Object
public AtomicValue evaluateSortKey(int n, XPathContext c) throws XPathException
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |