public void visit(Visitor v) throws JasperException {
  Iterator<Node> iter=list.iterator();
  while (iter.hasNext()) {
    Node n=iter.next();
    n.accept(v);
  }
}

public void visit ( Visitor v ) throws JasperException { Iterator < Node > iter = list . iterator ( ) ; while ( iter . hasNext ( ) ) { Node n = iter . next ( ) ; n . accept ( v ) ; } }
visit the nodes in the list with the supplied visitor
