public void visit(NodeSequence n, A argu) { int _count = 0; for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) { e.nextElement().accept(this, argu); _count++; } }
// // For convenience, trusts that the node passed to it is a NodeSequence. // (of course, will throw an exception if it isn't). // public void visit(Node n1, String sep) { NodeSequence n = (NodeSequence) n1; for (Enumeration e = n.elements(); e.hasMoreElements(); ) { ((Node) e.nextElement()).accept(this); if (e.hasMoreElements()) out.print(sep); } }
public R visit(NodeSequence n) { R _ret = null; int _count = 0; for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) { e.nextElement().accept(this); _count++; } return _ret; }
public void visit(final NodeSequence n, final A argu) { for (final Iterator<INode> e = n.elements(); e.hasNext(); ) { e.next().accept(this, argu); } return; }
public void visit(NodeSequence n) { for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) e.nextElement().accept(this); }