Home | History | Annotate | Download | only in patterns

Lines Matching refs:xctxt

319    * @param xctxt XPath runtime context.
330 public XObject execute(XPathContext xctxt, int currentNode)
334 DTM dtm = xctxt.getDTM(currentNode);
340 return execute(xctxt, currentNode, dtm, expType);
350 * @param xctxt XPath runtime context.
360 public XObject execute(XPathContext xctxt)
363 return execute(xctxt, xctxt.getCurrentNode());
371 * @param xctxt The XPath runtime context.
382 XPathContext xctxt, int currentNode, DTM dtm, int expType)
390 return m_relativePathPattern.execute(xctxt);
398 score = super.execute(xctxt, currentNode, dtm, expType);
405 if (!executePredicates(xctxt, dtm, currentNode))
410 return m_relativePathPattern.executeRelativePathPattern(xctxt, dtm,
419 * @param xctxt The XPath runtime context.
424 * m_predicates[predPos].execute(xctxt).
428 private final boolean checkProximityPosition(XPathContext xctxt,
442 xctxt.pushCurrentNode(child);
444 if (NodeTest.SCORE_NONE != super.execute(xctxt, child))
450 xctxt.pushSubContextList(this);
454 xctxt.pushPredicatePos(i);
457 XObject pred = m_predicates[i].execute(xctxt);
479 xctxt.popPredicatePos();
485 xctxt.popSubContextList();
497 xctxt.popCurrentNode();
516 * @param xctxt XPath runtime context.
523 private final int getProximityPosition(XPathContext xctxt, int predPos,
528 int context = xctxt.getCurrentNode();
529 DTM dtm = xctxt.getDTM(context);
541 xctxt.pushCurrentNode(child);
543 if (NodeTest.SCORE_NONE != super.execute(xctxt, child))
549 xctxt.pushSubContextList(this);
553 xctxt.pushPredicatePos(i);
556 XObject pred = m_predicates[i].execute(xctxt);
583 xctxt.popPredicatePos();
589 xctxt.popSubContextList();
603 xctxt.popCurrentNode();
622 * @param xctxt XPath runtime context.
627 public int getProximityPosition(XPathContext xctxt)
629 return getProximityPosition(xctxt, xctxt.getPredicatePos(), false);
639 * @param xctxt XPath runtime context.
643 public int getLastPos(XPathContext xctxt)
645 return getProximityPosition(xctxt, xctxt.getPredicatePos(), true);
652 * @param xctxt The XPath runtime context.
665 XPathContext xctxt, DTM dtm, int currentNode)
680 xctxt.pushCurrentNode(relative);
682 score = execute(xctxt);
689 xctxt.popCurrentNode();
700 * @param xctxt The XPath runtime context.
709 XPathContext xctxt, DTM dtm, int currentNode)
719 xctxt.pushSubContextList(this);
723 xctxt.pushPredicatePos(i);
727 XObject pred = m_predicates[i].execute(xctxt);
745 if (!checkProximityPosition(xctxt, i, dtm, currentNode, pos))
768 xctxt.popPredicatePos();
774 xctxt.popSubContextList();
881 * @param xctxt The XPath runtime context.
892 public double getMatchScore(XPathContext xctxt, int context)
896 xctxt.pushCurrentNode(context);
897 xctxt.pushCurrentExpressionNode(context);
901 XObject score = execute(xctxt);
907 xctxt.popCurrentNode();
908 xctxt.popCurrentExpressionNode();