public class OriginalFunction extends AbstractFunction implements Function, ContextOriginator
Constructor and Description |
---|
OriginalFunction(Component<? extends UserFunction> component) |
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 diagnostic explain() output
|
int |
getArity()
Get the arity of the function
|
String |
getContainingPackageName()
Get the name of the package containing 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
|
atomize, deepEquals, effectiveBooleanValue, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheck
getLength, head, itemAt, iterate, reduce, subsequence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deepEquals, getOperandRoles, isArray, isMap, iterate
atomize, getStringValue, getStringValueCS, head
effectiveBooleanValue, getLength, getStringValue, getStringValueCS, head, itemAt, reduce, subsequence
public OriginalFunction(Component<? extends UserFunction> component)
public Sequence call(XPathContext context, Sequence[] args) throws XPathException
call
in interface Callable
call
in interface Function
context
- the XPath dynamic evaluation contextargs
- the actual arguments to be suppliedXPathException
- if a dynamic error occurs within the functionpublic FunctionItemType getFunctionItemType()
getFunctionItemType
in interface Function
public StructuredQName getFunctionName()
getFunctionName
in interface Function
public int getArity()
public String getDescription()
getDescription
in interface Function
public String getContainingPackageName()
public void export(ExpressionPresenter out)
AbstractFunction
export
in interface Function
export
in class AbstractFunction
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.