Example #1
0
 public void visit(NodeListOptional n, String sep) {
   if (n.present())
     for (Enumeration e = n.elements(); e.hasMoreElements(); ) {
       ((Node) e.nextElement()).accept(this);
       if (e.hasMoreElements()) out.print(sep);
     }
 }
 public void visit(final NodeListOptional n, final A argu) {
   if (n.present()) {
     for (final Iterator<INode> e = n.elements(); e.hasNext(); ) {
       e.next().accept(this, argu);
     }
     return;
   } else return;
 }
Example #3
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++;
     }
   }
 }
 public R visit(NodeListOptional n) {
   if (n.present()) {
     R _ret = null;
     int _count = 0;
     for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) {
       e.nextElement().accept(this);
       _count++;
     }
     return _ret;
   } else return null;
 }
Example #5
0
 public void visit(NodeListOptional n) {
   if (n.present())
     for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) e.nextElement().accept(this);
 }