语言

XPathFactory.SetXPathFunctionResolver(IXPathFunctionResolver) 方法

定义

建立默认函数解析程序。

[Android.Runtime.Register("setXPathFunctionResolver", "(Ljavax/xml/xpath/XPathFunctionResolver;)V", "GetSetXPathFunctionResolver_Ljavax_xml_xpath_XPathFunctionResolver_Handler")]
public abstract void SetXPathFunctionResolver(Javax.Xml.Xpath.IXPathFunctionResolver? resolver);
[<Android.Runtime.Register("setXPathFunctionResolver", "(Ljavax/xml/xpath/XPathFunctionResolver;)V", "GetSetXPathFunctionResolver_Ljavax_xml_xpath_XPathFunctionResolver_Handler")>]
abstract member SetXPathFunctionResolver : Javax.Xml.Xpath.IXPathFunctionResolver -> unit

参数

resolver
IXPathFunctionResolver

XPath 函数解析程序。

特性

例外

resolver如果是null。

注解

建立默认函数解析程序。

从此工厂构造的任何 XPath 对象都将默认使用指定的解析程序。

如果resolver为 null,则引发 ANullPointerException。

Java文档javax.xml.xpath.XPathFactory.setXPathFunctionResolver(javax.xml.xpath.XPathFunctionResolver)。

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于