public class StringJoinCompiler extends ToStringCompiler
| Constructor and Description |
|---|
StringJoinCompiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
compileToPrimitive(CompilerService compiler,
Expression expression,
Class requiredClass,
OnEmpty onEmpty)
Generate bytecode to evaluate the expression leaving a plain Java value on the stack.
|
void |
compileToPush(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression in push mode
Precondition: none.
|
compileToItemcompileToBoolean, compileToIterator, returnZeroLengthStringIfNullallocateStatic, compileItemFromInt, compileItemFromString, compileToLoop, generateMethod, handleEmptyStringResult, throwXPathException, throwXPathException, unboxItem, verify, visitAnnotation, visitLineNumberpublic void compileToPush(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompilercompileToPush in class ToItemCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileExceptionpublic void compileToPrimitive(CompilerService compiler, Expression expression, Class requiredClass, OnEmpty onEmpty) throws CannotCompileException
ExpressionCompilercompileToPrimitive in class ExpressionCompilercompiler - the compiler serviceexpression - the expression to be compiledrequiredClass - the class of the Java value that is to be left on the stack if the generated code
exits normally. This must be one of Integer.TYPE, Double.TYPE, Float.TYPE, BigDecimal.class, CharSequence.class.onEmpty - defines the action to be taken if the expression evaluates to the empty sequence.
May be null if the expression is known statically not to evaluate to an empty sequence. If the return
class is a primitive type (double, float, etc) this must be an instance of OnEmpty.UnwindAndJumpCannotCompileExceptionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.