示例#1
0
 public void visit(NodeSequence n, A argu) {
   int _count = 0;
   for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) {
     e.nextElement().accept(this, argu);
     _count++;
   }
 }
示例#2
0
 public void visit(NodeListOptional n, A argu) {
   if (n.present()) {
     int _count = 0;
     for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) {
       e.nextElement().accept(this, argu);
       _count++;
     }
   }
 }