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, compileToPush
allocateStatic, compileItemFromInt, compileItemFromString, compileToLoop, compileToPrimitive, handleEmptyStringResult, throwXPathException, throwXPathException, unboxItem, verify, visitAnnotation, visitLineNumber
public void compileToBoolean(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompiler
compileToBoolean
in class ExpressionCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
public void generateMethod(CompilerService compiler, Expression expression, org.objectweb.asm.ClassVisitor cv)
generateMethod
in class ExpressionCompiler
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.