public class LetExpressionCompiler extends ToIteratorCompiler
| Constructor and Description |
|---|
LetExpressionCompiler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
compileCommonExpr(CompilerService compiler,
Expression exp,
int evaluationMode,
int refCount)
Helper method to generate bytecode the same for both compileToIterator and compileToItem
Precondition: none.
|
void |
compileToItem(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the LetExpression as an Item
Precondition: none.
|
void |
compileToIterator(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the LetExpression as an Iterator
Precondition: none.
|
void |
compileToPush(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the LetExpression as an Item
Precondition: none.
|
compileToBooleanallocateStatic, compileItemFromInt, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, verify, visitAnnotation, visitLineNumberpublic void compileToItem(CompilerService compiler, Expression expression) throws CannotCompileException
compileToItem in class ToIteratorCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileException - if the expression cannot be compiled to bytecodepublic void compileToPush(CompilerService compiler, Expression expression) throws CannotCompileException
compileToPush in class ToIteratorCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileException - if the expression cannot be compiled to bytecodepublic void compileToIterator(CompilerService compiler, Expression expression) throws CannotCompileException
compileToIterator in class ExpressionCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileException - if the expression cannot be compiled to bytecodepublic static void compileCommonExpr(CompilerService compiler, Expression exp, int evaluationMode, int refCount) throws CannotCompileException
compiler - the compiler serviceexp - the expression to be compiledevaluationMode - the evaluation moderefCount - CannotCompileException - if the expression cannot be compiled to bytecodeCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.