public class CopyCompiler extends ToPushCompiler
Constructor and Description |
---|
CopyCompiler() |
Modifier and Type | Method and Description |
---|---|
protected static void |
compileCopyAttribute(CompilerService compiler,
ValidatingInstruction expression,
int selectedItemVar,
boolean preserveTypes) |
protected static void |
compileCopyComment(CompilerService compiler,
Expression expression,
int selectedItemVar) |
protected static void |
compileCopyNamespace(CompilerService compiler,
Expression expression,
int selectedItemVar) |
protected static void |
compileCopyNonNode(CompilerService compiler,
Expression expression,
int selectedItemVar) |
protected static void |
compileCopyProcessingInstruction(CompilerService compiler,
Expression expression,
int selectedItemVar) |
protected static void |
compileCopyText(CompilerService compiler,
Expression expression,
int selectedItemVar) |
void |
compileToPush(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression in push mode
Precondition: none.
|
compileToItem, compileToIterator
compileToBoolean
allocateStatic, compileItemFromInt, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, verify, visitAnnotation, visitLineNumber
public void compileToPush(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompiler
compileToPush
in class ToIteratorCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
- if the expression cannot be compiled to bytecodeprotected static void compileCopyAttribute(CompilerService compiler, ValidatingInstruction expression, int selectedItemVar, boolean preserveTypes)
protected static void compileCopyNamespace(CompilerService compiler, Expression expression, int selectedItemVar)
protected static void compileCopyText(CompilerService compiler, Expression expression, int selectedItemVar)
protected static void compileCopyComment(CompilerService compiler, Expression expression, int selectedItemVar)
protected static void compileCopyProcessingInstruction(CompilerService compiler, Expression expression, int selectedItemVar)
protected static void compileCopyNonNode(CompilerService compiler, Expression expression, int selectedItemVar)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.