Converting arguments to Java extension functions
This section describes how XPath values supplied in a call to a Java extension function are converted to Java values.
There are three phases of decision-making:
First, Saxon decides which method to call. See Choosing among overloaded methods above.
Saxon allocates a converter, wherever possible at compile time, based on the static type of the supplied argument and the Java type expected by the method.
At run-time the converter performs the conversion from the supplied value to the required type. Some converters will make further decisions based on run-time types at this stage.
The process of argument conversion is described further in the following pages.