public interface XPathFunction
XPathFunction 提供了对 XPath 函数的访问。
函数由 XPath 中的 QName 和 arity 标识。
| 方法摘要 | |
|---|---|
Object |
evaluate(List args) 计算带指定参数的函数。 |
| 方法详细信息 |
|---|
Object evaluate(List args) throws XPathFunctionException
计算带指定参数的函数。
在扩展函数的定义中应尽最大可能避免副作用。计算 XPath 表达式的实现不负责以任何特殊顺序或以任何特殊次数调用扩展函数。
args - 参数,
null 为有效值。
XPath 函数的结果(以
Object 形式)。
XPathFunctionException - 如果不能通过此
XPath 函数计算
args。