org.apache.xpath.jaxp.XPathImpl.eval()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.apache.xpath.jaxp.XPathImpl.eval()方法的一些代码示例,展示了XPathImpl.eval()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathImpl.eval()方法的具体详情如下:
包路径:org.apache.xpath.jaxp.XPathImpl
类名称:XPathImpl
方法名:eval

XPathImpl.eval介绍

[英]Evaluate an XPath expression in the specified context and return the result as a String.

This method calls #evaluate(String expression,Object item,QName returnType) with a returnType of XPathConstants#STRING.

See "Evaluation of XPath Expressions" of JAXP 1.3 spec for context item evaluation, variable, function and QName resolution and return type conversion.

If a null value is provided for item, an empty document will be used for the context. If expression is null, then a NullPointerException is thrown.
[中]在指定的上下文中计算XPath表达式,并将结果作为String返回。
此方法使用returnType个XPathConstants#字符串调用#evaluate(字符串表达式、对象项、QName返回类型)。
有关上下文项求值、变量、函数和QName解析以及返回类型转换,请参阅JAXP 1.3规范的“XPath表达式求值”。
如果为item提供了null值,则上下文将使用空文档。如果expressionnull,则会抛出NullPointerException

代码示例

代码示例来源:origin: robovm/robovm

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: robovm/robovm

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

代码示例来源:origin: xalan/xalan

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: xalan/xalan

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

代码示例来源:origin: com.bugvm/bugvm-rt

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: com.gluonhq/robovm-rt

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: MobiVM/robovm

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: ibinti/bugvm

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: FlexoVM/flexovm

XObject resultObject = eval( expression, item );
  return getResultAsType( resultObject, returnType );
} catch ( java.lang.NullPointerException npe ) {

代码示例来源:origin: MobiVM/robovm

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

代码示例来源:origin: ibinti/bugvm

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

代码示例来源:origin: com.gluonhq/robovm-rt

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

代码示例来源:origin: com.bugvm/bugvm-rt

XObject resultObject = eval( expression, document );
  return getResultAsType( resultObject, returnType );
} catch ( SAXException e ) {

相关文章