| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.saxonica.functions.hof.AbstractFunctionItem
com.saxonica.functions.hof.UserFunctionItem
public class UserFunctionItem
A UserFunctionItem is a function item representing a call on a user-defined function. It is typically created as a result of the expression local:f#1 where local:f is a user-defined function. The implementation is a wrapper around a UserFunctionCall representing a call on the specified function.
| Field Summary | |
|---|---|
| protected  UserFunctionCall | target | 
| Fields inherited from interface net.sf.saxon.om.ValueRepresentation | 
|---|
| EMPTY_VALUE_ARRAY | 
| Constructor Summary | |
|---|---|
| UserFunctionItem(UserFunctionCall target) | |
| Method Summary | |
|---|---|
|  void | explain(ExpressionPresenter out) | 
|  int | getArity()Get the arity of the function | 
|  FunctionItemType | getFunctionItemType()Determine the item type of the items in the value | 
|  StructuredQName | getFunctionName()Get the name of the function | 
|  SequenceIterator | invoke(SequenceIterator[] args,
       XPathContext context)Invoke the function | 
|  void | typeCheck(ExpressionVisitor visitor,
          ItemType contextItemType)Type check the function (may modify it by adding code for converting the arguments) | 
| Methods inherited from class com.saxonica.functions.hof.AbstractFunctionItem | 
|---|
| bind, curry, getStringValue, getStringValueCS, getTypedValue, optimize | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected UserFunctionCall target
| Constructor Detail | 
|---|
public UserFunctionItem(UserFunctionCall target)
| Method Detail | 
|---|
public int getArity()
public StructuredQName getFunctionName()
public FunctionItemType getFunctionItemType()
public void typeCheck(ExpressionVisitor visitor,
                      ItemType contextItemType)
               throws XPathException
typeCheck in class AbstractFunctionItemvisitor - the expression visitor, supplies context informationcontextItemType - the context item type at the point where the function definition appears
XPathException
public SequenceIterator invoke(SequenceIterator[] args,
                               XPathContext context)
                        throws XPathException
args - the actual arguments to be suppliedcontext - the XPath dynamic evaluation context
XPathExceptionpublic void explain(ExpressionPresenter out)
explain in class AbstractFunctionItem| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||