Package com.saxonica.ee.bytecode.map

## Class CompiledAxisMappingFunction

- java.lang.Object
- - com.saxonica.ee.bytecode.map.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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `CompiledAxisMappingFunction()` |

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract AxisIterator` | `map​(Item origin)` | Map one item to a sequence.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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