public class SortExpressionCompiler extends ToIteratorCompiler
Constructor and Description |
---|
SortExpressionCompiler() |
Modifier and Type | Method and Description |
---|---|
static int |
compileSortKeyDefinitions(CompilerService compiler,
SortKeyDefinition[] definitions)
Generate code to evaluate variable parts of the sort key definitions
|
void |
compileToIterator(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression as a
SequenceIterator
Precondition: none. |
compileToBoolean, compileToItem, compileToPush
allocateStatic, compileItemFromInt, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, unboxItem, verify, visitAnnotation, visitLineNumber
public void compileToIterator(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompiler
SequenceIterator
Precondition: none.
Postcondition: at execution time, the stack contains a SequenceIterator representing the result of the expressioncompileToIterator
in class ExpressionCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
public static int compileSortKeyDefinitions(CompilerService compiler, SortKeyDefinition[] definitions)
compiler
- definitions
- the array of sort key definitionsCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.