| Modifier | Constructor and Description |
|---|---|
protected |
XdmFunctionItem() |
|
XdmFunctionItem(Function fi) |
| 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, matches, size, stream, wrapItem, wrapItem, wrapItemappend, documentOrder, fromGroundedValue, itemAt, iterator, makeSequence, makeValue, select, setValue, toString, wrap, wrapprotected XdmFunctionItem()
public XdmFunctionItem(Function fi)
public QName getName()
public int getArity()
public boolean isAtomicValue()
isAtomicValue in class XdmItempublic static XdmFunctionItem getSystemFunction(Processor processor, QName name, int arity) throws SaxonApiException
SaxonApiException - if dynamic function calls are not permitted by this Saxon Configurationpublic java.util.function.Function<? super XdmValue,? extends XdmValue> asFunction(Processor processor)
java.lang.IllegalStateException - if the arity of the function is not one (1).public Step<XdmItem> asStep(Processor processor)
java.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 ProcessorSaxonApiExceptionCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.