예제 #1
0
 /**
  * @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);
     }
   }
 }
예제 #3
0
 /**
  * @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
파일: XString.java 프로젝트: tnndwc/Java8-7
 /**
  * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner,
  *     XPathVisitor)
  */
 public void callVisitors(ExpressionOwner owner, XPathVisitor visitor) {
   visitor.visitStringLiteral(owner, this);
 }