01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
package horstmann.ch10_visitor;
import java.io.File;

public class FileNode implements FileSystemNode
{
  public FileNode(File file)
  {
    this.file = file;
  }

  public File getFile() { return file; }

  public void accept(FileSystemVisitor v)
  {
    v.visitFileNode(this);
  }

  private File file;
}