public class EMMLUserFunction
extends SystemFunctionCall
The base class for user-defined, custom XPath functions for mashup scripts. Any methods in subclasses can be exposed as XPath functions with the following limitations:
Constructor and Description |
---|
EMMLUserFunction() |
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext arg0,
Sequence[] arg1) |
Item |
evaluateItem(XPathContext context)
The default method to perform some calculation based on the
specified XPath context.
|
Expression |
preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
(because the value of the expression depends on the runtime context)
|
public Expression preEvaluate(ExpressionVisitor visitor) throws XPathException
XPathException
public Item evaluateItem(XPathContext context) throws XPathException
context
- The XPath context to use in this function.XPathException
public Sequence call(XPathContext arg0, Sequence[] arg1) throws XPathException
XPathException