public class CurriedFunction extends AbstractFunction
Constructor and Description |
---|
CurriedFunction(Function targetFunction,
Sequence[] boundValues)
Create a curried function
|
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
void |
export(ExpressionPresenter out)
Output information about this function item
|
int |
getArity()
Get the arity of the function (equal to the number of placeholders)
|
java.lang.String |
getDescription()
Get a description of this function for use in error messages.
|
FunctionItemType |
getFunctionItemType()
Get the item type of the function item
|
StructuredQName |
getFunctionName()
Get the name of the function, or null if it is anonymous
|
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, isTrustedResultType, makeNewContext, simplify, typeCheck
getLength, head, isStreamed, itemAt, iterate, reduce, subsequence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public CurriedFunction(Function targetFunction, Sequence[] boundValues) throws XPathException
targetFunction
- the function to be curriedboundValues
- the values to which the arguments are to be bound, representing
unbound values (placeholders) by nullXPathException
- if any $boundArg does not exist among the argumentspublic FunctionItemType getFunctionItemType()
public StructuredQName getFunctionName()
public java.lang.String getDescription()
public int getArity()
public Sequence call(XPathContext context, Sequence[] args) throws XPathException
context
- the XPath dynamic evaluation contextargs
- the actual arguments to be suppliedXPathException
public void export(ExpressionPresenter out) throws XPathException
export
in interface Function
export
in class AbstractFunction
out
- the destination to write toXPathException
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.