01 |
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; } |