Package net.sf.saxon.functions.hof

## Class CallableWithBoundFocus

- java.lang.Object
- - net.sf.saxon.functions.hof.CallableWithBoundFocus

- All Implemented Interfaces:
    `Callable`

      public class CallableWithBoundFocus
      extends java.lang.Object
      implements Callable

  A Callable that wraps another Callable and a Dynamic Context, in effect acting as a closure that executes the original callable with a saved context.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CallableWithBoundFocus​(Callable target, XPathContext context)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Sequence` | `call​(XPathContext context, Sequence[] arguments)` | Evaluate the expression

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

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

- - ### Constructor Detail

    - #### CallableWithBoundFocus

          public CallableWithBoundFocus​(Callable target,
                                        XPathContext context)

  - ### Method Detail

    - #### call

          public Sequence call​(XPathContext context,
                               Sequence[] arguments)
                        throws XPathException

      Evaluate the expression
      Specified by:
        `call` in interface `Callable`
      Parameters:
        `context` - the dynamic evaluation context
        `arguments` - the values of the arguments, supplied as SequenceIterators
      Returns:
        the result of the evaluation, in the form of a SequenceIterator
      Throws:
        `XPathException` - if a dynamic error occurs during the evaluation of the expression