public class SlashExpressionCompiler extends ToIteratorCompiler
Constructor and Description |
---|
SlashExpressionCompiler() |
Modifier and Type | Method and Description |
---|---|
void |
compileToIterator(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the SlashExpression as a ContextMappingIterator
Precondition: none.
|
void |
compileToPush(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression in push mode
Precondition: none.
|
static CompiledAxisMappingFunction |
generateAxisMappingFunction(CompilerService compiler,
AxisExpression step)
Generate a mapping function for a given step expression
|
static CompiledContextMappingFunction |
generateMappingFunction(CompilerService compiler,
Expression step)
Generate a mapping function for a given step expression
|
compileToBoolean, compileToItem
allocateStatic, compileItemFromInt, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, verify, visitAnnotation, visitLineNumber
public void compileToIterator(CompilerService compiler, Expression expression) throws CannotCompileException
compileToIterator
in class ExpressionCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
- if the expression cannot be compiled to bytecodepublic static CompiledContextMappingFunction generateMappingFunction(CompilerService compiler, Expression step) throws CannotCompileException
compiler
- the compiler servicestep
- the step expression to form the body of the mapping actionCannotCompileException
- if the expression cannot be compiled to bytecodepublic static CompiledAxisMappingFunction generateAxisMappingFunction(CompilerService compiler, AxisExpression step) throws CannotCompileException
compiler
- the compiler servicestep
- the step expression to form the body of the mapping actionCannotCompileException
- if the expression cannot be compiled to bytecodepublic void compileToPush(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompiler
compileToPush
in class ToIteratorCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
- if the expression cannot be compiled to bytecodeCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.