com.saxonica.functions.hof

## Class CallableWithBoundFocus

- java.lang.Object
- - com.saxonica.functions.hof.CallableWithBoundFocus

- All Implemented Interfaces:
    Callable

      public class CallableWithBoundFocus
      extends 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 and Description
    `CallableWithBoundFocus(Callable target, XPathContext context)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and 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

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.