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

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

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

Expression.num介绍

[英]Evaluate expression to a number.
[中]将表达式求值为一个数字。

代码示例

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) % m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) * m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) / m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) - m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return -(m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return -(m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return m_right.num(xctxt);
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_right.num(xctxt) + m_left.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) / m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return m_right.num(xctxt);
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) % m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) - m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_right.num(xctxt) + m_left.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) * m_right.num(xctxt));
}

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

double len = m_arg2.num(xctxt);
int end = (int) (Math.round(len) + start) - 1;

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

double len = m_arg2.num(xctxt);
int end = (int) (Math.round(len) + start) - 1;

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return m_right.num(xctxt);
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) % m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) * m_right.num(xctxt));
}

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

/**
 * Evaluate this operation directly to a double.
 *
 * @param xctxt The runtime execution context.
 *
 * @return The result of the operation as a double.
 *
 * @throws javax.xml.transform.TransformerException
 */
public double num(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return (m_left.num(xctxt) % m_right.num(xctxt));
}

相关文章