|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.functions.hof.AbstractFunctionItem com.saxonica.functions.hof.CurriedFunction
public class CurriedFunction
A function obtained by currying another function, that is, the result of calling fn:partial-apply
Field Summary |
---|
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
---|
EMPTY_VALUE_ARRAY |
Constructor Summary | |
---|---|
CurriedFunction(FunctionItem targetFunction,
ValueRepresentation[] boundValues)
Create a curried function |
Method Summary | |
---|---|
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 |
SequenceIterator |
invoke(SequenceIterator[] args,
XPathContext context)
Invoke the function |
Methods inherited from class com.saxonica.functions.hof.AbstractFunctionItem |
---|
bind, curry, deepEquals, explain, getStringValue, getStringValueCS, getTypedValue, optimize, simplify, typeCheck |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurriedFunction(FunctionItem targetFunction, ValueRepresentation[] boundValues) throws XPathException
targetFunction
- the function to be curriedboundValues
- the values to which the arguments are to be bound, representing
unbound values (placeholders) by null
XPathException
- if any $boundArg does not exist among the argumentsMethod Detail |
---|
public FunctionItemType getFunctionItemType(TypeHierarchy th)
th
- the type hierarchy cache
public StructuredQName getFunctionName()
public int getArity()
public SequenceIterator invoke(SequenceIterator[] args, XPathContext context) throws XPathException
args
- the actual arguments to be suppliedcontext
- the XPath dynamic evaluation context
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |