/**
  * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner,
  *     XPathVisitor)
  */
 public void callVisitors(ExpressionOwner owner, XPathVisitor visitor) {
   if (visitor.visitLocationPath(owner, this)) {
     if (null != m_firstWalker) {
       m_firstWalker.callVisitors(this, visitor);
     }
   }
 }
示例#2
0
 /**
  * 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 owner The owner of the visitor, where that path may be rewritten if needed.
  * @param visitor The visitor whose appropriate method will be called.
  */
 public void callVisitors(ExpressionOwner owner, XPathVisitor visitor) {
   if (visitor.visitStep(owner, this)) {
     callPredicateVisitors(visitor);
     if (null != m_nextWalker) {
       m_nextWalker.callVisitors(this, visitor);
     }
   }
 }
 /**
  * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner,
  *     XPathVisitor)
  */
 public void callVisitors(ExpressionOwner owner, XPathVisitor visitor) {
   if (visitor.visitUnionPath(owner, this)) {
     if (null != m_exprs) {
       int n = m_exprs.length;
       for (int i = 0; i < n; i++) {
         m_exprs[i].callVisitors(new iterOwner(i), visitor);
       }
     }
   }
 }
示例#4
0
 /**
  * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner,
  *     XPathVisitor)
  */
 public void callVisitors(ExpressionOwner owner, XPathVisitor visitor) {
   visitor.visitStringLiteral(owner, this);
 }