Class ContextItemCompiler


  • public class ContextItemCompiler
    extends ToItemCompiler
    Generate code for a context item expression (that is, "."), and also for an XSLT CurrentItemExpression (current()), which differs only in the error code it returns
    • Constructor Detail

      • ContextItemCompiler

        public ContextItemCompiler()
    • Method Detail

      • compileToItem

        public void compileToItem​(CompilerService compiler,
                                  Expression expression)
        Description copied from class: ExpressionCompiler
        Generate bytecode to evaluate the expression as an Item Precondition: none. Postcondition: at execution time, the stack contains either an item (the result of the expression), or null (representing an empty sequence).
        Specified by:
        compileToItem in class ExpressionCompiler
        Parameters:
        compiler - the compiler service
        expression - the expression to be compiled