public class InlineFunction extends AbstractFunction
Constructor and Description |
---|
InlineFunction(UserFunction function) |
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
void |
export(ExpressionPresenter out)
Output information about this function item to the export() output
|
int |
getArity()
Get the arity of the function
|
String |
getDescription()
Get a description of this function for use in error messages.
|
FunctionItemType |
getFunctionItemType()
Get the item type of the function item
|
StructuredQName |
getFunctionName()
Get the name of the function, or null if it is anonymous
|
void |
simplify() |
String |
toString() |
void |
typeCheck(ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType)
Type check the function (may modify it by adding code for converting the arguments)
|
atomize, deepEquals, effectiveBooleanValue, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, optimize
getLength, head, itemAt, iterate, reduce, subsequence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public InlineFunction(UserFunction function)
public void simplify() throws XPathException
simplify
in class AbstractFunction
XPathException
public void typeCheck(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
typeCheck
in class AbstractFunction
visitor
- the expression visitor, supplies context informationcontextItemType
- the context item type at the point where the function definition appearsXPathException
- if any failure (e.g. a type checking failure) occurspublic FunctionItemType getFunctionItemType()
public StructuredQName getFunctionName()
public String getDescription()
public int getArity()
public void export(ExpressionPresenter out)
export
in interface Function
export
in class AbstractFunction
out
- the output destinationpublic 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-2014 Saxonica Limited. All rights reserved.