01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
package horstmann.ch10_visitor;
/**
   The visitor interface type for visiting file system nodes.
 */
public interface FileSystemVisitor
{
  /**
      Visits a file node.
      @param node the file node
   */
  void visitFileNode(FileNode node);

  /**
      Visits a directory node.
      @param node the directory node
   */
  void visitDirectoryNode(DirectoryNode node);
}