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,
Container container)
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
|
makeSaxonFunction
getFunctionItem, isAvailable, makeFunctionCall, registerFunction
protected Configuration config
public VendorFunctionLibraryPE(Configuration config)
protected void init()
init
in class VendorFunctionLibrary
public FunctionLibrary copy()
IntegratedFunctionLibrary
copy
in interface FunctionLibrary
copy
in class VendorFunctionLibrary
public Expression bind(SymbolicName symbolicName, Expression[] staticArgs, StaticContext env, Container container) throws XPathException
bind
in interface FunctionLibrary
bind
in class IntegratedFunctionLibrary
symbolicName
- 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
- 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.protected void checkArgumentCount(StructuredQName functionName, int arity, int min, int max) throws XPathException
XPathException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.