com.saxonica.codegen
Class ItemCheckerCompiler
java.lang.Object
  
com.saxonica.codegen.ExpressionCompiler
      
com.saxonica.codegen.SequenceExpressionCompiler
          
com.saxonica.codegen.ItemCheckerCompiler
public class ItemCheckerCompiler
- extends SequenceExpressionCompiler
 
Generate Java code to implement an item type check
 
 
 
 
 
ItemCheckerCompiler
public ItemCheckerCompiler()
compileToItem
public String compileToItem(CompilerService compiler,
                            Expression expr)
- Description copied from class: 
ExpressionCompiler 
- Generate Java code to evaluate the expression as an Item
- Overrides:
 compileToItem in class SequenceExpressionCompiler
 
- 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 
Item,
 and which will hold the value of the expression at run-time (or hold null,
 representing an empty sequence). 
 
 
compileToIterator
public String compileToIterator(CompilerService compiler,
                                Expression expr)
- Description copied from class: 
ExpressionCompiler 
- Generate Java code to evaluate the expression as a SequenceIterator
- Specified by:
 compileToIterator 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 
SequenceIterator,
 and which at run-time will hold an iterator over the the value of the expression 
 
 
compilePush
public void compilePush(CompilerService compiler,
                        Expression expr)
- 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
- Overrides:
 compilePush in class SequenceExpressionCompiler
 
- Parameters:
 compiler - the compiler serviceexpr - the expression to be compiled
 
 
Copyright (C) Michael H. Kay. All rights reserved.