public class JavaExtensionFunctionFactory extends Object implements ExtensionFunctionFactory, Serializable
Note that this class handles Java extension functions only; a different class, DotNetExtensionFunctionFactory, is used for .NET extensions.
Constructor and Description |
---|
JavaExtensionFunctionFactory(Configuration config) |
Modifier and Type | Method and Description |
---|---|
Expression |
makeExtensionFunctionCall(StructuredQName functionName,
Class theClass,
AccessibleObject method,
Expression[] arguments)
Factory method to create an expression that calls a Java extension function.
|
void |
setExtensionFunctionClass(Class subclass)
Set the class to be used to represent extension function calls.
|
public JavaExtensionFunctionFactory(Configuration config)
public void setExtensionFunctionClass(Class subclass)
JavaExtensionFunctionCall
subclass
- the subclass of ExtensionFunctionCall to be usedpublic Expression makeExtensionFunctionCall(StructuredQName functionName, Class theClass, AccessibleObject method, Expression[] arguments)
functionName
- the name of the functiontheClass
- the Java class containing the extension functionmethod
- The "accessibleObject" representing a constructor, method, or field corresponding
to the extension functionarguments
- Array containing the expressions supplied as arguments to the function call.Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.