org.apache.xpath.Expression.asNode()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(96)

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

Expression.asNode介绍

[英]Return the first node out of the nodeset, if this expression is a nodeset expression.
[中]如果此表达式是节点集表达式,则返回节点集外的第一个节点。

代码示例

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

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

/**
 * Execute the first argument expression that is expected to return a
 * nodeset.  If the argument is null, then return the current context node.
 *
 * @param xctxt Runtime XPath context.
 *
 * @return The first node of the executed nodeset, or the current context
 *         node if the first argument is null.
 *
 * @throws javax.xml.transform.TransformerException if an error occurs while
 *                                   executing the argument expression.
 */
protected int getArg0AsNode(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (null == m_arg0)
     ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);
}

相关文章