public class AxisExpressionCompiler extends ToIteratorCompiler
| Constructor and Description |
|---|
AxisExpressionCompiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
compileToIterator(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression as a
SequenceIterator
Precondition: none. |
static void |
iterate(CompilerService compiler,
int axis,
NodeTest test)
Generate code to iterate over the selected axis.
|
compileToBoolean, compileToItem, compileToPushallocateStatic, compileItemFromInt, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, unboxItem, verify, visitAnnotation, visitLineNumberpublic void compileToIterator(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompilerSequenceIterator
Precondition: none.
Postcondition: at execution time, the stack contains a SequenceIterator representing the result of the expressioncompileToIterator in class ExpressionCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileExceptionpublic static void iterate(CompilerService compiler, int axis, NodeTest test)
compiler - the compiler serviceaxis - the axis to be iterated overtest - the node test to be satisfied; possibly null if all nodes are selectedCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.