コード例 #1
0
 @Override
 public void visiting(Node visited) {
   System.out.println("Node : " + visited.getFullName());
   for (Leaf leaf : visited.leafs()) {
     leaf.visit(leafVisitor);
   }
 }
コード例 #2
0
 @Override
 public void visiting(Leaf visited) {
   System.out.println("Leaf : " + visited.getFullName());
 }