Package net.sf.saxon.s9api
Class XdmFunctionItem
- java.lang.Object
-
- net.sf.saxon.s9api.XdmValue
-
- net.sf.saxon.s9api.XdmItem
-
- net.sf.saxon.s9api.XdmFunctionItem
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXdmFunctionItem(FunctionItem fi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XdmValuecall(XdmValue[] arguments, Processor processor)Call the functionintgetArity()Get the arity of the functionQNamegetName()Get the name of the functionbooleanisAtomicValue()Determine whether the item is an atomic value-
Methods inherited from class net.sf.saxon.s9api.XdmItem
getStringValue, newAtomicValue, size, wrapItem
-
Methods inherited from class net.sf.saxon.s9api.XdmValue
append, getUnderlyingValue, itemAt, iterator, setValue, wrap
-
-
-
-
Constructor Detail
-
XdmFunctionItem
protected XdmFunctionItem(FunctionItem fi)
-
-
Method Detail
-
getName
public QName getName()
Get the name of the function- Returns:
- the function name, as a QName, or null for an anonymous inline function item
-
getArity
public int getArity()
Get the arity of the function- Returns:
- the arity of the function, that is, the number of arguments in the function's signature
-
isAtomicValue
public boolean isAtomicValue()
Determine whether the item is an atomic value- Overrides:
isAtomicValuein classXdmItem- Returns:
- false, the item is not an atomic value, it is a function item
-
call
public XdmValue call(XdmValue[] arguments, Processor processor) throws SaxonApiException
Call the function- Parameters:
arguments- the values to be supplied as arguments to the functionprocessor- the s9api Processor- Returns:
- the result of calling the function
- Throws:
SaxonApiException
-
-