public interface FunctionItem extends Item, 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, getTypedValue
FunctionItemType getFunctionItemType()
StructuredQName getFunctionName()
int getArity()
SequenceIterator invoke(SequenceIterator[] args, XPathContext context) throws XPathException
args
- the actual arguments to be suppliedcontext
- the XPath dynamic evaluation contextXPathException
FunctionItem 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