public class IdentityComparisonCompiler extends ToItemCompiler
Constructor and Description |
---|
IdentityComparisonCompiler() |
Modifier and Type | Method and Description |
---|---|
void |
compileToBoolean(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression as a boolean
Precondition: none.
|
void |
compileToItem(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression as an Item
Precondition: none.
|
compileToIterator, compileToPush, returnZeroLengthStringIfNull
allocateStatic, compileItemFromInt, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, verify, visitAnnotation, visitLineNumber
public void compileToItem(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompiler
compileToItem
in class ExpressionCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
- if the expression cannot be compiled to bytecodepublic void compileToBoolean(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompiler
compileToBoolean
in class ToItemCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
- if the expression cannot be compiled to bytecodeCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.