public abstract class LoopBodyGenerator
extends java.lang.Object
Constructor and Description |
---|
LoopBodyGenerator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
generateLoopBody(CompilerService compiler)
Generate the code to process each item delivered by the looping expression.
|
java.lang.Class |
getExpectedItemClass()
Say in what form the loop body generator expects the items to be delivered.
|
boolean |
isSmallAmountOfCode()
Say whether the amount of code generated is sufficiently small that we don't mind it being
generated more than once.
|
public abstract void generateLoopBody(CompilerService compiler) throws CannotCompileException
compiler
- the compiler serviceCannotCompileException
- if the expression cannot be compiledpublic java.lang.Class getExpectedItemClass()
Item
. The alternative is to ask for it to be placed as a primitive value,
for example of type Double.TYPE or Boolean.TYPE, or as a Java String or BigDecimal objectpublic boolean isSmallAmountOfCode()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.