public class ExtraFunctionLibrary extends VendorFunctionLibrary
| Constructor and Description |
|---|
ExtraFunctionLibrary(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
bind(StructuredQName functionName,
int arity,
Expression[] staticArgs,
StaticContext env,
Container container)
Bind an extension function, given the URI and local parts of the function name,
and the list of expressions supplied as arguments.
|
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(Configuration config)
Initialize the set of functions available
|
init, makeSaxonFunctiongetFunctionItem, isAvailable, makeFunctionCall, registerFunctionpublic ExtraFunctionLibrary(Configuration config)
protected void init(Configuration config)
public FunctionLibrary copy()
IntegratedFunctionLibrarycopy in interface FunctionLibrarycopy in class VendorFunctionLibrarypublic Expression bind(StructuredQName functionName, int arity, Expression[] staticArgs, StaticContext env, Container container) throws XPathException
bind in interface FunctionLibrarybind in class IntegratedFunctionLibraryfunctionName - the name of the functionarity - staticArgs - 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 - container - XPathException - 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.Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.