public class UserFunctionItem extends AbstractFunctionItem
| Modifier and Type | Field and Description |
|---|---|
protected UserFunctionCall |
target |
| Constructor and Description |
|---|
UserFunctionItem(UserFunctionCall target) |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
void |
explain(ExpressionPresenter out) |
int |
getArity()
Get the arity of the function
|
FunctionItemType |
getFunctionItemType(TypeHierarchy th)
Determine the item type of the items in the value
|
StructuredQName |
getFunctionName()
Get the name of the function
|
UserFunctionCall |
getUserFunctionCall()
Get the underlying UserFunctionCall
|
void |
optimize(ExpressionVisitor visitor,
ExpressionVisitor.ContextItemType contextItemType)
Optimize the function (may modify it)
|
void |
simplify(ExpressionVisitor visitor) |
void |
typeCheck(ExpressionVisitor visitor,
ExpressionVisitor.ContextItemType contextItemType)
Type check the function (may modify it by adding code for converting the arguments)
|
deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, getTypedValuegetLength, head, itemAt, iterate, reduce, subsequenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, itemAt, reduce, subsequenceprotected UserFunctionCall target
public UserFunctionItem(UserFunctionCall target)
public UserFunctionCall getUserFunctionCall()
public int getArity()
public StructuredQName getFunctionName()
public FunctionItemType getFunctionItemType(TypeHierarchy th)
th - public void simplify(ExpressionVisitor visitor) throws XPathException
simplify in class AbstractFunctionItemXPathExceptionpublic void typeCheck(ExpressionVisitor visitor, ExpressionVisitor.ContextItemType contextItemType) throws XPathException
typeCheck in class AbstractFunctionItemvisitor - the expression visitor, supplies context informationcontextItemType - the context item type at the point where the function definition appearsXPathExceptionpublic void optimize(ExpressionVisitor visitor, ExpressionVisitor.ContextItemType contextItemType) throws XPathException
optimize in class AbstractFunctionItemvisitor - the expression visitor, supplies context informationcontextItemType - the context item type at the point where the function definition appearsXPathExceptionpublic Sequence call(XPathContext context, Sequence[] args) throws XPathException
context - the XPath dynamic evaluation contextargs - the actual arguments to be suppliedXPathExceptionpublic void explain(ExpressionPresenter out)
explain in class AbstractFunctionItemCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.