public interface XPathFunction
| javax.xml.xpath.XPathFunction |
XPathFunction提供对XPath函数的访问。
函数在XPath中由QName和arity标识。
公共方法(Public methods) |
|
|---|---|
abstract Object |
evaluate(List args) 用指定的参数评估函数。 |
Object evaluate (List args)
用指定的参数评估函数。
在最大程度上,在扩展功能的定义中应避免副作用。 评估XPath表达式的实现没有义务按任何特定顺序或任何特定次数调用扩展函数。
| 参数(Parameters) | |
|---|---|
args |
List: The arguments, null is a valid value. |
| 返回(Returns) | |
|---|---|
Object |
The result of evaluating the XPath function as an Object. |
| 抛出异常(Throws) | |
|---|---|
XPathFunctionException |
If args cannot be evaluated with this XPath function. |