public interface FunctionItem extends Item, Callable, GroundedValue
| Modifier and Type | Method and Description |
|---|---|
Sequence |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
boolean |
deepEquals(FunctionItem other,
XPathContext context,
AtomicComparer comparer,
int flags)
Test whether this FunctionItem is deep-equal to another function item,
under the rules of the deep-equal function
|
int |
getArity()
Get the arity of the function
|
FunctionItemType |
getFunctionItemType(TypeHierarchy th)
Get the item type of the function item
|
StructuredQName |
getFunctionName()
Get the name of the function, or null if it is anonymous
|
UnfailingIterator |
iterate()
Get an iterator over all the items in the sequence
|
getStringValue, getStringValueCS, headeffectiveBooleanValue, getLength, getStringValue, getStringValueCS, head, itemAt, reduce, subsequenceUnfailingIterator iterate()
iterate in interface GroundedValueiterate in interface SequenceFunctionItemType getFunctionItemType(TypeHierarchy th)
th - the type hierarchy cacheStructuredQName getFunctionName()
int getArity()
Sequence call(XPathContext context, Sequence[] args) throws XPathException
call in interface Callablecontext - the XPath dynamic evaluation contextargs - the actual arguments to be suppliedXPathException - if a dynamic error occurs within the functionboolean deepEquals(FunctionItem other, XPathContext context, AtomicComparer comparer, int flags) throws XPathException
other - the other function itemcontext - the dynamic evaluation contextcomparer - the object to perform the comparisonflags - options for how the comparison is performedXPathException - if the comparison cannot be performedCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.