| java.lang.Object net.sf.saxon.functions.ExtensionFunctionFactory
ExtensionFunctionFactory | public class ExtensionFunctionFactory implements Serializable(Code) | | This class acts as a factory for creating expressions that call extension functions.
A different factory may be registered with the Configuration in order to customize the
behaviour. Alternatively, this factory class can be customized by calling setExtensionFunctionClass
to nominate a subclass of ExtensionFunctionCall to be used to implement calls on extension functions.
|
Method Summary | |
public Expression | makeExtensionFunctionCall(int nameCode, Class theClass, AccessibleObject method, Expression[] arguments) Factory method to create an expression that calls a Java extension function.
This is always called at XPath compile time.
Parameters: nameCode - the name of the function name, as represented in the name pool Parameters: theClass - the Java class containing the extension function Parameters: method - The "accessibleObject" representing a constructor, method, or field correspondingto the extension function Parameters: arguments - Array containing the expressions supplied as arguments to the function call. | public void | setExtensionFunctionClass(Class subclass) Set the class to be used to represent extension function calls. |
makeExtensionFunctionCall | public Expression makeExtensionFunctionCall(int nameCode, Class theClass, AccessibleObject method, Expression[] arguments)(Code) | | Factory method to create an expression that calls a Java extension function.
This is always called at XPath compile time.
Parameters: nameCode - the name of the function name, as represented in the name pool Parameters: theClass - the Java class containing the extension function Parameters: method - The "accessibleObject" representing a constructor, method, or field correspondingto the extension function Parameters: arguments - Array containing the expressions supplied as arguments to the function call. the constructed ExtensionFunctionCall object (a subclass might return any expressionrepresenting the extension function call). |
setExtensionFunctionClass | public void setExtensionFunctionClass(Class subclass)(Code) | | Set the class to be used to represent extension function calls. This must be a subclass
of
ExtensionFunctionCall Parameters: subclass - the subclass of ExtensionFunctionCall to be used |
|
|