public class SimpleStepExpressionCompiler extends ToIteratorCompiler
| Constructor and Description |
|---|
SimpleStepExpressionCompiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
compileToIterator(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression as a
SequenceIterator
Precondition: none. |
void |
compileToLoop(CompilerService compiler,
Expression expression,
LoopBodyGenerator loopBody)
The compileToLoop method compiles this expression in such a way that the code generated by the supplied
loopBody argument will be executed once for each item in the result of this expression.
|
compileToBoolean, compileToItem, compileToPushallocateStatic, compileItemFromInt, compileItemFromString, compileToPrimitive, generateMethod, handleEmptyStringResult, throwXPathException, throwXPathException, 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 void compileToLoop(CompilerService compiler, Expression expression, LoopBodyGenerator loopBody) throws CannotCompileException
compileToLoop in class ExpressionCompilercompiler - the compiler serviceexpression - the expression to be compiledloopBody - a generator which produces code to be executed once for every item in the result of this
expression, with that item being on the top of the bytecode stack.CannotCompileExceptionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.