| Constructor and Description |
|---|
XdmFunctionItem(Function fi)
Create an XdmFunctionItem that wraps a supplied
Function. |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Function<? super XdmValue,? extends XdmValue> |
asFunction(Processor processor)
Get an equivalent Java Function object representing this XdmFunction.
|
Step<XdmItem> |
asStep(Processor processor)
Get an equivalent Step object representing this XdmFunction.
|
XdmValue |
call(Processor processor,
XdmValue... arguments)
Call the function
|
int |
getArity()
Get the arity of the function
|
QName |
getName()
Get the name of the function
|
static XdmFunctionItem |
getSystemFunction(Processor processor,
QName name,
int arity)
Get a system function.
|
boolean |
isAtomicValue()
Determine whether the item is an atomic value
|
asMap, getStringValue, getUnderlyingValue, getUnicodeStringValue, isNode, matches, size, stream, wrapItem, wrapItem, wrapItemappend, documentOrder, isEmpty, itemAt, iterator, makeSequence, makeValue, select, subsequence, toString, wrap, wrappublic XdmFunctionItem(Function fi)
Function. This
method is primarily for internal use, though it is also available to applications
that manipulate data using lower-level Saxon interfaces.fi - the function value to be wrapped.public QName getName()
public int getArity()
public boolean isAtomicValue()
isAtomicValue in class XdmItempublic static XdmFunctionItem getSystemFunction(Processor processor, QName name, int arity) throws SaxonApiException
processor - the processorname - the name of the requested functionarity - the arity of the requested functionSaxonApiException - No longer thrown, but remains in the method signature for backwards compatibilitypublic java.util.function.Function<? super XdmValue,? extends XdmValue> asFunction(Processor processor)
processor - the processorjava.lang.IllegalStateException - if the arity of the function is not one (1).public Step<XdmItem> asStep(Processor processor)
processor - the processorjava.lang.IllegalStateException - if the arity of the function is not one (1).public XdmValue call(Processor processor, XdmValue... arguments) throws SaxonApiException
arguments - the values to be supplied as arguments to the function. The "function
conversion rules" will be applied to convert the arguments to the required
type when necessary.processor - the s9api ProcessorSaxonApiException - if an error is detectedCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.