org.apache.xpath.operations.Operation类的使用及代码示例

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

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

Operation介绍

[英]The baseclass for a binary operation.
[中]二进制操作的基类。

代码示例

代码示例来源: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: robovm/robovm

  1. /**
  2. * Bottle-neck compilation of an operation with left and right operands.
  3. *
  4. * @param operation non-null reference to parent operation.
  5. * @param opPos The op map position of the parent operation.
  6. *
  7. * @return reference to {@link org.apache.xpath.operations.Operation} instance.
  8. *
  9. * @throws TransformerException if there is a syntax or other error.
  10. */
  11. private Expression compileOperation(Operation operation, int opPos)
  12. throws TransformerException
  13. {
  14. int leftPos = getFirstChildPos(opPos);
  15. int rightPos = getNextOpPos(leftPos);
  16. operation.setLeftRight(compile(leftPos), compile(rightPos));
  17. return operation;
  18. }

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

  1. /**
  2. * @see Expression#deepEquals(Expression)
  3. */
  4. public boolean deepEquals(Expression expr)
  5. {
  6. if(!isSameClass(expr))
  7. return false;
  8. if(!m_left.deepEquals(((Operation)expr).m_left))
  9. return false;
  10. if(!m_right.deepEquals(((Operation)expr).m_right))
  11. return false;
  12. return true;
  13. }
  14. }

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

  1. /**
  2. * Bottle-neck compilation of an operation with left and right operands.
  3. *
  4. * @param operation non-null reference to parent operation.
  5. * @param opPos The op map position of the parent operation.
  6. *
  7. * @return reference to {@link org.apache.xpath.operations.Operation} instance.
  8. *
  9. * @throws TransformerException if there is a syntax or other error.
  10. */
  11. private Expression compileOperation(Operation operation, int opPos)
  12. throws TransformerException
  13. {
  14. int leftPos = getFirstChildPos(opPos);
  15. int rightPos = getNextOpPos(leftPos);
  16. operation.setLeftRight(compile(leftPos), compile(rightPos));
  17. return operation;
  18. }

代码示例来源: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: xalan/xalan

  1. /**
  2. * @see Expression#deepEquals(Expression)
  3. */
  4. public boolean deepEquals(Expression expr)
  5. {
  6. if(!isSameClass(expr))
  7. return false;
  8. if(!m_left.deepEquals(((Operation)expr).m_left))
  9. return false;
  10. if(!m_right.deepEquals(((Operation)expr).m_right))
  11. return false;
  12. return true;
  13. }
  14. }

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

  1. /**
  2. * Bottle-neck compilation of an operation with left and right operands.
  3. *
  4. * @param operation non-null reference to parent operation.
  5. * @param opPos The op map position of the parent operation.
  6. *
  7. * @return reference to {@link org.apache.xpath.operations.Operation} instance.
  8. *
  9. * @throws TransformerException if there is a syntax or other error.
  10. */
  11. private Expression compileOperation(Operation operation, int opPos)
  12. throws TransformerException
  13. {
  14. int leftPos = getFirstChildPos(opPos);
  15. int rightPos = getNextOpPos(leftPos);
  16. operation.setLeftRight(compile(leftPos), compile(rightPos));
  17. return operation;
  18. }

代码示例来源: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. * @see Expression#deepEquals(Expression)
  3. */
  4. public boolean deepEquals(Expression expr)
  5. {
  6. if(!isSameClass(expr))
  7. return false;
  8. if(!m_left.deepEquals(((Operation)expr).m_left))
  9. return false;
  10. if(!m_right.deepEquals(((Operation)expr).m_right))
  11. return false;
  12. return true;
  13. }
  14. }

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

  1. /**
  2. * Bottle-neck compilation of an operation with left and right operands.
  3. *
  4. * @param operation non-null reference to parent operation.
  5. * @param opPos The op map position of the parent operation.
  6. *
  7. * @return reference to {@link org.apache.xpath.operations.Operation} instance.
  8. *
  9. * @throws TransformerException if there is a syntax or other error.
  10. */
  11. private Expression compileOperation(Operation operation, int opPos)
  12. throws TransformerException
  13. {
  14. int leftPos = getFirstChildPos(opPos);
  15. int rightPos = getNextOpPos(leftPos);
  16. operation.setLeftRight(compile(leftPos), compile(rightPos));
  17. return operation;
  18. }

代码示例来源: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: com.bugvm/bugvm-rt

  1. /**
  2. * @see Expression#deepEquals(Expression)
  3. */
  4. public boolean deepEquals(Expression expr)
  5. {
  6. if(!isSameClass(expr))
  7. return false;
  8. if(!m_left.deepEquals(((Operation)expr).m_left))
  9. return false;
  10. if(!m_right.deepEquals(((Operation)expr).m_right))
  11. return false;
  12. return true;
  13. }
  14. }

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

  1. /**
  2. * Bottle-neck compilation of an operation with left and right operands.
  3. *
  4. * @param operation non-null reference to parent operation.
  5. * @param opPos The op map position of the parent operation.
  6. *
  7. * @return reference to {@link org.apache.xpath.operations.Operation} instance.
  8. *
  9. * @throws TransformerException if there is a syntax or other error.
  10. */
  11. private Expression compileOperation(Operation operation, int opPos)
  12. throws TransformerException
  13. {
  14. int leftPos = getFirstChildPos(opPos);
  15. int rightPos = getNextOpPos(leftPos);
  16. operation.setLeftRight(compile(leftPos), compile(rightPos));
  17. return operation;
  18. }

代码示例来源: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: MobiVM/robovm

  1. /**
  2. * @see Expression#deepEquals(Expression)
  3. */
  4. public boolean deepEquals(Expression expr)
  5. {
  6. if(!isSameClass(expr))
  7. return false;
  8. if(!m_left.deepEquals(((Operation)expr).m_left))
  9. return false;
  10. if(!m_right.deepEquals(((Operation)expr).m_right))
  11. return false;
  12. return true;
  13. }
  14. }

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

  1. /**
  2. * Bottle-neck compilation of an operation with left and right operands.
  3. *
  4. * @param operation non-null reference to parent operation.
  5. * @param opPos The op map position of the parent operation.
  6. *
  7. * @return reference to {@link org.apache.xpath.operations.Operation} instance.
  8. *
  9. * @throws TransformerException if there is a syntax or other error.
  10. */
  11. private Expression compileOperation(Operation operation, int opPos)
  12. throws TransformerException
  13. {
  14. int leftPos = getFirstChildPos(opPos);
  15. int rightPos = getNextOpPos(leftPos);
  16. operation.setLeftRight(compile(leftPos), compile(rightPos));
  17. return operation;
  18. }

代码示例来源: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: ibinti/bugvm

  1. /**
  2. * @see Expression#deepEquals(Expression)
  3. */
  4. public boolean deepEquals(Expression expr)
  5. {
  6. if(!isSameClass(expr))
  7. return false;
  8. if(!m_left.deepEquals(((Operation)expr).m_left))
  9. return false;
  10. if(!m_right.deepEquals(((Operation)expr).m_right))
  11. return false;
  12. return true;
  13. }
  14. }

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

  1. /**
  2. * Bottle-neck compilation of an operation with left and right operands.
  3. *
  4. * @param operation non-null reference to parent operation.
  5. * @param opPos The op map position of the parent operation.
  6. *
  7. * @return reference to {@link org.apache.xpath.operations.Operation} instance.
  8. *
  9. * @throws TransformerException if there is a syntax or other error.
  10. */
  11. private Expression compileOperation(Operation operation, int opPos)
  12. throws TransformerException
  13. {
  14. int leftPos = getFirstChildPos(opPos);
  15. int rightPos = getNextOpPos(leftPos);
  16. operation.setLeftRight(compile(leftPos), compile(rightPos));
  17. return operation;
  18. }

代码示例来源: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. }

相关文章