1 public interface Visitor<E>
2 {
3 /**
4 This method is called for each visited node.
5 @param data the data of the node
6 */
7 void visit(E data);
8 }
9