com.saxonica.codegen
Class IntegerRangeCompiler
java.lang.Object
com.saxonica.codegen.ValueCompiler
com.saxonica.codegen.IntegerRangeCompiler
public class IntegerRangeCompiler
- extends ValueCompiler
Generate Java code to implement an XPath integer range expression
of the form (1 to 10) with constant end points. Assume that zero-length and
single-length sequences have already been optimized out.
IntegerRangeCompiler
public IntegerRangeCompiler()
compileToIterator
public String compileToIterator(CompilerService compiler,
Value expr)
- Overrides:
compileToIterator
in class ValueCompiler
compileAsLoop
public void compileAsLoop(CompilerService compiler,
Value expr,
LoopAction action)
- Compile an expression in the form of a loop. Default implementation.
- Parameters:
compiler
- the CompilerServiceexpr
- the expression to be compiledaction
- the action to be taken to process each item in the sequence returned by the expression
toJavaExpression
public String toJavaExpression(AtomicValue value,
CompilerService compiler)
- Specified by:
toJavaExpression
in class ValueCompiler
Copyright (C) Michael H. Kay. All rights reserved.