public class VendorFunctionLibraryPE extends VendorFunctionLibrary
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config |
| Constructor and Description |
|---|
VendorFunctionLibraryPE(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
bind(SymbolicName symbolicName,
Expression[] staticArgs,
StaticContext env)
Bind an extension function, given the URI and local parts of the function name,
and the list of expressions supplied as arguments.
|
protected void |
checkArgumentCount(StructuredQName functionName,
int arity,
int min,
int max) |
FunctionLibrary |
copy()
This method creates a copy of a FunctionLibrary: if the original FunctionLibrary allows
new functions to be added, then additions to this copy will not affect the original, or
vice versa.
|
protected void |
init()
Initialize the set of functions available
|
makeSaxonFunctiongetFunctionItem, isAvailable, makeFunctionCall, registerFunctionprotected Configuration config
public VendorFunctionLibraryPE(Configuration config)
protected void init()
init in class VendorFunctionLibrarypublic FunctionLibrary copy()
IntegratedFunctionLibrarycopy in interface FunctionLibrarycopy in class VendorFunctionLibrarypublic Expression bind(SymbolicName symbolicName, Expression[] staticArgs, StaticContext env) throws XPathException
bind in interface FunctionLibrarybind in class IntegratedFunctionLibrarysymbolicName - the name and arity of the functionstaticArgs - The expressions supplied statically in the function call. The intention is
that the static type of the arguments (obtainable via getItemType() and getCardinality() may
be used as part of the binding algorithm.env - The static contextXPathException - if a function is found with the required name and arity, but
the implementation of the function cannot be loaded or used; or if an error occurs
while searching for the function; or if this function library "owns" the namespace containing
the function call, but no function was found.protected void checkArgumentCount(StructuredQName functionName, int arity, int min, int max) throws XPathException
XPathExceptionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.