|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.hof.AbstractFunctionItem com.saxonica.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,
int boundArg,
ValueRepresentation boundValue)
Create a curried function |
Method Summary | |
---|---|
int |
getArity()
Get the arity of the function |
FunctionItemType |
getFunctionItemType()
Get the item type of the function item |
StructuredQName |
getFunctionName()
Get the name of the function, or null if it is anonymous |
ValueRepresentation |
invoke(ValueRepresentation[] args,
XPathContext context)
Invoke the function |
Methods inherited from class com.saxonica.hof.AbstractFunctionItem |
---|
bind, curry, explain, getStringValue, getStringValueCS, getTypedValue, optimize, 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, int boundArg, ValueRepresentation boundValue) throws XPathException
targetFunction
- the function to be curriedboundArg
- the argument in the target function whose value is to be bound, as a 1-based
index into the arguments of the target functionboundValue
- the value to which the argument is to be bound
XPathException
- if $boundArg does not exist among the argumentsMethod Detail |
---|
public FunctionItemType getFunctionItemType()
public StructuredQName getFunctionName()
public int getArity()
public ValueRepresentation invoke(ValueRepresentation[] 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 |