org.apache.xpath.operations.Operation.operate()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(102)

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

Operation.operate介绍

[英]Apply the operation to two operands, and return the result.
[中]将运算应用于两个操作数,并返回结果。

代码示例

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

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

  1. /**
  2. * Execute a binary operation by calling execute on each of the operands,
  3. * and then calling the operate method on the derived class.
  4. *
  5. *
  6. * @param xctxt The runtime execution context.
  7. *
  8. * @return The XObject result of the operation.
  9. *
  10. * @throws javax.xml.transform.TransformerException
  11. */
  12. public XObject execute(XPathContext xctxt)
  13. throws javax.xml.transform.TransformerException
  14. {
  15. XObject left = m_left.execute(xctxt, true);
  16. XObject right = m_right.execute(xctxt, true);
  17. XObject result = operate(left, right);
  18. left.detach();
  19. right.detach();
  20. return result;
  21. }

相关文章