Item<T>
, PullEvent
, ValueRepresentation<T>
public interface FunctionItem<T extends FunctionItem> extends Item<T>, ValueRepresentation<T>
EMPTY_VALUE_ARRAY
Modifier and Type | Method | Description |
---|---|---|
FunctionItem |
curry(ValueRepresentation<? extends Item>[] values) |
Curry a function by binding one or more (but not all) of its arguments
|
boolean |
deepEquals(FunctionItem other,
XPathContext context,
GenericAtomicComparer 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
|
SequenceIterator<? extends Item> |
invoke(SequenceIterator<? extends Item>[] args,
XPathContext context) |
Invoke the function
|
getStringValue, getStringValueCS, getTypedValue
FunctionItemType getFunctionItemType(TypeHierarchy th)
th
- the type hierarchy cacheStructuredQName getFunctionName()
int getArity()
SequenceIterator<? extends Item> invoke(SequenceIterator<? extends Item>[] args, XPathContext context) throws XPathException
args
- the actual arguments to be suppliedcontext
- the XPath dynamic evaluation contextXPathException
- if a dynamic error occurs within the functionFunctionItem curry(ValueRepresentation<? extends Item>[] values) throws XPathException
values
- the values to which the arguments are to be bound, representing an unbound argument (a placeholder)
by nullXPathException
- if any dynamic error occursboolean deepEquals(FunctionItem other, XPathContext context, GenericAtomicComparer 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 performed