net.sf.saxon.om
public interface FunctionItem extends Item, Serializable
Method Summary | |
---|---|
FunctionItem | curry(int arg, ValueRepresentation value)
Curry a function by binding one of its arguments |
int | getArity()
Get the arity of the function |
FunctionItemType | getFunctionItemType()
Get the item type of the function item |
StructuredQName | getFunctionName()
Get the name of the function, or null if it is anonymous |
ValueRepresentation | invoke(ValueRepresentation[] args, XPathContext context)
Invoke the function |
Parameters: arg the argument to be found (1-based) value the value to which the argument is to be bound
Returns: the number of arguments in the function signature
Returns: the function item's type
Returns: the function name, or null for an anonymous inline function
Parameters: args the actual arguments to be supplied context the XPath dynamic evaluation context
Returns: the result of invoking the function
Throws: net.sf.saxon.trans.XPathException