Beispiel #1
0
 //
 // Auto class visitors--probably don't need to be overridden.
 //
 public void visit(NodeList n, A argu) {
   int _count = 0;
   for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) {
     e.nextElement().accept(this, argu);
     _count++;
   }
 }
 //
 // Auto class visitors--probably don't need to be overridden.
 //
 public R visit(NodeList n) {
   R _ret = null;
   int _count = 0;
   for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) {
     e.nextElement().accept(this);
     _count++;
   }
   return _ret;
 }
Beispiel #3
0
 //
 // A few convenience methods
 //
 public void visit(NodeList n, String sep) {
   for (Enumeration e = n.elements(); e.hasMoreElements(); ) {
     ((Node) e.nextElement()).accept(this);
     if (e.hasMoreElements()) out.print(sep);
   }
 }
 public void visit(final NodeList n, final A argu) {
   for (final Iterator<INode> e = n.elements(); e.hasNext(); ) {
     e.next().accept(this, argu);
   }
   return;
 }
Beispiel #5
0
 //
 // Auto class visitors--probably don't need to be overridden.
 //
 public void visit(NodeList n) {
   for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) e.nextElement().accept(this);
 }