public class CastableToListCompiler extends ToBooleanCompiler
| Constructor and Description |
|---|
CastableToListCompiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
compileToBoolean(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression as a boolean
Precondition: none.
|
void |
generateMethod(CompilerService compiler,
Expression expression,
org.objectweb.asm.ClassVisitor cv)
This method generates the method effectiveBooleanValue, returning a boolean.
|
compileToItem, compileToIterator, compileToPushallocateStatic, compileItemFromInt, compileItemFromString, compileToLoop, compileToPrimitive, handleEmptyStringResult, throwXPathException, throwXPathException, unboxItem, verify, visitAnnotation, visitLineNumberpublic void compileToBoolean(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompilercompileToBoolean in class ExpressionCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileExceptionpublic void generateMethod(CompilerService compiler, Expression expression, org.objectweb.asm.ClassVisitor cv)
generateMethod in class ExpressionCompilerCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.