예제 #1
0
 public void Accept(Visitor visitor)
 {
     foreach (Element e in elements)
     {
         e.Accept(visitor);
     }
 }
예제 #2
0
 public abstract void Accept(Visitor visitor);
예제 #3
0
 public override void Accept(Visitor visitor)
 {
     visitor.VisitConcreteElementB(this);
 }
예제 #4
0
 public void accept(Visitor visitor)
 {
     visitor.visit(this);
 }