com.saxonica.codegen
Class BlockCompiler
java.lang.Object
com.saxonica.codegen.ExpressionCompiler
com.saxonica.codegen.PushExpressionCompiler
com.saxonica.codegen.BlockCompiler
public class BlockCompiler
- extends PushExpressionCompiler
Generate Java code for a Block, that is a sequence of expressions or instructions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockCompiler
public BlockCompiler()
compilePush
public void compilePush(CompilerService compiler,
Expression exp)
- Description copied from class:
ExpressionCompiler
- Generate Java code to execute the expression in push mode, that is, code to
write events to the current output Receiver
- Specified by:
compilePush
in class ExpressionCompiler
- Parameters:
compiler
- the compiler serviceexp
- the expression to be compiled
compileToValueRepresentation
public String compileToValueRepresentation(CompilerService compiler,
Expression expr)
- Description copied from class:
ExpressionCompiler
- Generate Java code to evaluate the expression as a ValueRepresentation
- Overrides:
compileToValueRepresentation
in class ExpressionCompiler
- Parameters:
compiler
- the compiler serviceexpr
- the expression to be compiled
- Returns:
- a simple Java expression (usually the name of a variable that
has been declared) which will be of class
ValueRepresentation
,
and which at run-time will hold the value of the expression
compileToIterator
public String compileToIterator(CompilerService compiler,
Expression expr)
- Description copied from class:
ExpressionCompiler
- Generate Java code to evaluate the expression as a SequenceIterator
- Overrides:
compileToIterator
in class PushExpressionCompiler
- Parameters:
compiler
- the compiler serviceexpr
- the XPath expression to be compiled
- Returns:
- a simple Java expression (usually the name of a variable that
has been declared) which will be of class
SequenceIterator
,
and which at run-time will hold an iterator over the the value of the XPath expression
Copyright (c) Saxonica Limited. All rights reserved.