public class CurriedFunction extends AbstractFunctionItem
| Constructor and Description |
|---|
CurriedFunction(FunctionItem targetFunction,
Sequence[] boundValues)
Create a curried function
|
| Modifier and Type | Method and Description |
|---|---|
Sequence |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
int |
getArity()
Get the arity of the function (equal to the number of placeholders)
|
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
|
deepEquals, effectiveBooleanValue, explain, getStringValue, getStringValueCS, getTypedValue, optimize, simplify, typeCheckgetLength, head, itemAt, iterate, reduce, subsequenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, itemAt, reduce, subsequencepublic CurriedFunction(FunctionItem 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(TypeHierarchy th)
th - the type hierarchy cachepublic StructuredQName getFunctionName()
public int getArity()
public Sequence call(XPathContext context, Sequence[] args) throws XPathException
context - the XPath dynamic evaluation contextargs - the actual arguments to be suppliedXPathExceptionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.