public interface FunctionItem extends Item, java.io.Serializable
EMPTY_VALUE_ARRAY| Modifier and Type | Method and Description |
|---|---|
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
|
SequenceIterator |
invoke(SequenceIterator[] args,
XPathContext context)
Invoke the function
|
getStringValue, getStringValueCS, getTypedValueFunctionItemType getFunctionItemType()
StructuredQName getFunctionName()
int getArity()
SequenceIterator invoke(SequenceIterator[] args, XPathContext context) throws XPathException
args - the actual arguments to be suppliedcontext - the XPath dynamic evaluation contextXPathExceptionFunctionItem curry(int arg, ValueRepresentation value) throws XPathException
arg - the argument to be found (1-based)value - the value to which the argument is to be boundXPathException