Ejemplo n.º 1
0
  /**
   * Call the children visitors.
   *
   * @param visitor The visitor whose appropriate method will be called.
   */
  public void callChildVisitors(XSLTVisitor visitor, boolean callAttributes) {
    if (callAttributes && (null != m_selectExpression))
      m_selectExpression.callVisitors(this, visitor);

    int length = getSortElemCount();

    for (int i = 0; i < length; i++) {
      getSortElem(i).callVisitors(visitor);
    }

    super.callChildVisitors(visitor, callAttributes);
  }
  /**
   * This will traverse the heararchy, calling the visitor for each member. If the called visitor
   * method returns false, the subtree should not be called.
   *
   * @param visitor The visitor whose appropriate method will be called.
   */
  public void callPredicateVisitors(XPathVisitor visitor) {
    m_expr.callVisitors(new filterExprOwner(), visitor);

    super.callPredicateVisitors(visitor);
  }
Ejemplo n.º 3
0
 /** @see org.apache.xpath.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor) */
 public void callArgVisitors(XPathVisitor visitor) {
   if (null != m_arg0) m_arg0.callVisitors(this, visitor);
 }