Most visited

Recently visited

Added in API level 8

XPathFunction

public interface XPathFunction

javax.xml.xpath.XPathFunction


XPathFunction提供对XPath函数的访问。

函数在XPath中由QName和arity标识。

Summary

Public methods

abstract Object evaluate(List args)

用指定的参数评估函数。

Public methods

evaluate

Added in API level 8
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.

Hooray!