public abstract class ToStringCompiler extends ToItemCompiler
Constructor and Description |
---|
ToStringCompiler() |
Modifier and Type | Method and Description |
---|---|
protected void |
compileItemFromString(CompilerService compiler,
Expression expression)
Helper method to implement compileFromItem when the class implements compileToPrimitive
|
void |
compileToItem(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression as an Item
Precondition: none.
|
compileToBoolean, compileToIterator, compileToPush, returnZeroLengthStringIfNull
allocateStatic, compileItemFromInt, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, unboxItem, verify, visitAnnotation, visitLineNumber
public final void compileToItem(CompilerService compiler, Expression expression) throws CannotCompileException
compileToItem
in class ExpressionCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
protected final void compileItemFromString(CompilerService compiler, Expression expression) throws CannotCompileException
compiler
- expression
- CannotCompileException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.