public interface XPathFunction
XPathFunction提供对XPath函数的访问。
功能由XPath中的QName和arity标识。
Object evaluate(List args) throws XPathFunctionException
用指定的参数来评估函数。
在扩展功能的定义中,应尽可能避免副作用。 评估XPath表达式的实现没有义务以任何特定顺序或任何特定次数调用扩展函数。
args - 参数
null是一个有效的值。
XPath功能的结果为
Object 。
XPathFunctionException - If
args cannot be evaluated with this
XPath function.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.