net.sf.saxon.functions

Class VendorFunctionLibrary

public class VendorFunctionLibrary extends IntegratedFunctionLibrary

The VendorFunctionLibrary represents specially-recognized functions in the Saxon namespace.
Constructor Summary
VendorFunctionLibrary()
Create the Vendor Function Library for Saxon
Method Summary
protected voidinit()
ExpressionmakeSaxonFunction(String localName, StaticContext env, Expression[] arguments)
Make a Saxon function with a given name
static StringpluralArguments(int num)
Utility routine used in constructing error messages

Constructor Detail

VendorFunctionLibrary

public VendorFunctionLibrary()
Create the Vendor Function Library for Saxon

Method Detail

init

protected void init()

makeSaxonFunction

public Expression makeSaxonFunction(String localName, StaticContext env, Expression[] arguments)
Make a Saxon function with a given name

Parameters: localName the local name of the function env the static context arguments the arguments of the function

Returns: an exprssion representing a call on the given function

pluralArguments

public static String pluralArguments(int num)
Utility routine used in constructing error messages

Parameters: num a number

Returns: the string " argument" or " arguments" if num is plural