public class ValueOfCompiler extends SimpleNodeConstructorCompiler
Constructor and Description |
---|
ValueOfCompiler() |
Modifier and Type | Method and Description |
---|---|
void |
compileToItem(CompilerService compiler,
Expression expression)
Generate bytecode to get the ValueOf text from the instruction
Precondition: none.
|
protected boolean |
isNoNodeIfEmpty(Expression expr)
Overridable method to ask whether no node should be produced in the case that the content is empty
|
protected void |
pushNode(CompilerService compiler,
Expression expression)
Generate code to write the node to the current receiver.
|
checkContent, compileNodeName, compileToPush, isNamedNodeKind
compileToIterator
compileToBoolean
allocateStatic, compileItemFromInt, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, unboxItem, verify, visitAnnotation, visitLineNumber
public void compileToItem(CompilerService compiler, Expression expression) throws CannotCompileException
compileToItem
in class SimpleNodeConstructorCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
protected boolean isNoNodeIfEmpty(Expression expr)
isNoNodeIfEmpty
in class SimpleNodeConstructorCompiler
protected void pushNode(CompilerService compiler, Expression expression)
pushNode
in class SimpleNodeConstructorCompiler
compiler
- expression
- Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.