public abstract class ToItemCompiler extends ExpressionCompiler
| Constructor and Description | 
|---|
| ToItemCompiler() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | compileToBoolean(CompilerService compiler,
                Expression expression)Generate bytecode to evaluate the expression as a boolean
 Precondition: none. | 
| void | compileToIterator(CompilerService compiler,
                 Expression expression)Generate bytecode to evaluate the expression as a  SequenceIteratorPrecondition: none. | 
| void | compileToPush(CompilerService compiler,
             Expression expression)Generate bytecode to evaluate the expression in push mode
 Precondition: none. | 
| protected void | returnZeroLengthStringIfNull(Expression arg,
                            Generator ga,
                            GeneratedMethodInfo methodInfo,
                            LabelInfo returnLabel,
                            int extraPops)Utility method for use by subclasses to generate code that causes an empty string to be returned
 if the first argument is an empty sequence. | 
allocateStatic, compileItemFromInt, compileItemFromString, compileToItem, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, throwXPathException, throwXPathException, unboxItem, verify, visitAnnotation, visitLineNumberpublic void compileToIterator(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompilerSequenceIterator
 Precondition: none.
 Postcondition: at execution time, the stack contains a SequenceIterator representing the result of the expressioncompileToIterator in class ExpressionCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileExceptionpublic void compileToBoolean(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompilercompileToBoolean in class ExpressionCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileExceptionpublic void compileToPush(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompilercompileToPush in class ExpressionCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileExceptionprotected void returnZeroLengthStringIfNull(Expression arg, Generator ga, GeneratedMethodInfo methodInfo, LabelInfo returnLabel, int extraPops)
arg - the first argumentga - the GeneratormethodInfo - the method informationreturnLabel - the label to jump to on completionextraPops - items (other than the string being tested) that need to be popped of the stack if jumping to
 the return labelCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.