Class CompiledAxisMappingFunction

  • All Implemented Interfaces:
    MappingFunction

    public abstract class CompiledAxisMappingFunction
    extends java.lang.Object
    implements MappingFunction
    Abstract MappingFunction class that must be passed to a MappingIterator. This implementation of MappingFunction acts as a superclass for generated bytecode classes used to implement path expressions where the RHS is an AxisExpression: these can be evaluated without creating a new context or FocusIterator.
    • Constructor Detail

      • CompiledAxisMappingFunction

        public CompiledAxisMappingFunction()
    • Method Detail

      • map

        public abstract AxisIterator map​(Item origin)
                                  throws XPathException
        Description copied from interface: MappingFunction
        Map one item to a sequence.
        Specified by:
        map in interface MappingFunction
        Parameters:
        origin - The item to be mapped.
        Returns:
        one of the following: (a) a SequenceIterator over the sequence of items that the supplied input item maps to, or (b) null if it maps to an empty sequence.
        Throws:
        XPathException - if a dynamic error occurs