public class CallableFunctionItem extends AbstractFunctionItem
| Constructor and Description |
|---|
CallableFunctionItem(StructuredQName name,
int arity,
Callable callable,
FunctionItemType type) |
CallableFunctionItem(UserFunction function) |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
int |
getArity()
Get the arity of the function
|
Callable |
getCallable() |
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
|
void |
setCallable(Callable callable) |
void |
setType(FunctionItemType type) |
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 CallableFunctionItem(StructuredQName name, int arity, Callable callable, FunctionItemType type)
public CallableFunctionItem(UserFunction function)
public Callable getCallable()
public void setCallable(Callable callable)
public void setType(FunctionItemType type)
public 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 suppliedXPathException - if a dynamic error occurs within the functionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.