net.sf.saxon.xpath
public class XPathFunctionCall extends FunctionCall
Constructor Summary | |
---|---|
XPathFunctionCall(XPathFunction function)
Default constructor |
Method Summary | |
---|---|
SequenceIterator | call(ValueRepresentation[] argValues, XPathContext context)
Call an extension function previously identified using the bind() method. |
void | checkArguments(StaticContext env)
Method called by the expression parser when all arguments have been supplied |
int | computeCardinality()
Determine the cardinality of the result |
int | getIntrinsicDependencies()
Determine which aspects of the context the expression depends on. |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression, if possible. |
SequenceIterator | iterate(XPathContext context)
Evaluate the function. |
Expression | preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
(because the external function might have side-effects and might use the context) |
Parameters: argValues The values of the arguments
Returns: The value returned by the extension function
Returns: ZERO_OR_MORE (we don't know)
This method will always return a result, though it may be the best approximation that is available at the time.
Parameters: th
Returns: the item type
Parameters: context The context in which the function is to be evaluated
Returns: a Value representing the result of the function.
Throws: XPathException if the function cannot be evaluated.