// This file is automatically generated by DemeterJ. CopyVisitor { {{ private java.util.Stack history = new java.util.Stack(); public CopyVisitor(Class firstClass) { try { history.push(firstClass.newInstance()); } catch(Exception e) { e.printStackTrace(); } } }} get copy {{ return history.peek(); }} return Object {{ get_copy() }} before -> Main, s, String {{ Main it = (Main) history.peek(); it.set_s(dest); }} before -> BusRoute, name, String {{ BusRoute it = (BusRoute) history.peek(); it.set_name(dest); }} before -> BusRoute, buses, Bus_List {{ BusRoute it = (BusRoute) history.peek(); Bus_List p = new Bus_List(); it.set_buses(p); history.push(p); }} after -> BusRoute, buses, Bus_List {{ history.pop(); }} before -> BusRoute, towns, Town_List {{ BusRoute it = (BusRoute) history.peek(); Town_List p = new Town_List(); it.set_towns(p); history.push(p); }} after -> BusRoute, towns, Town_List {{ history.pop(); }} before -> Bus, name, String {{ Bus it = (Bus) history.peek(); it.set_name(dest); }} before -> Bus, passengers, Person_List {{ Bus it = (Bus) history.peek(); Person_List p = new Person_List(); it.set_passengers(p); history.push(p); }} after -> Bus, passengers, Person_List {{ history.pop(); }} before -> Town, name, String {{ Town it = (Town) history.peek(); it.set_name(dest); }} before -> Town, busStops, BusStop_List {{ Town it = (Town) history.peek(); BusStop_List p = new BusStop_List(); it.set_busStops(p); history.push(p); }} after -> Town, busStops, BusStop_List {{ history.pop(); }} before -> Person, name, String {{ Person it = (Person) history.peek(); it.set_name(dest); }} before -> BusStop, name, String {{ BusStop it = (BusStop) history.peek(); it.set_name(dest); }} before -> BusStop, waiting, Person_List {{ BusStop it = (BusStop) history.peek(); Person_List p = new Person_List(); it.set_waiting(p); history.push(p); }} after -> BusStop, waiting, Person_List {{ history.pop(); }} before -> PrintVisitor, indent, int {{ PrintVisitor it = (PrintVisitor) history.peek(); it.set_indent(dest); }} before -> PrintVisitor, needSpace, boolean {{ PrintVisitor it = (PrintVisitor) history.peek(); it.set_needSpace(dest); }} before -> SubgraphVisitor, is_equal, boolean {{ SubgraphVisitor it = (SubgraphVisitor) history.peek(); it.set_is_equal(dest); }} before -> EqualVisitor, is_equal, boolean {{ EqualVisitor it = (EqualVisitor) history.peek(); it.set_is_equal(dest); }} before -> DisplayVisitor, indent, int {{ DisplayVisitor it = (DisplayVisitor) history.peek(); it.set_indent(dest); }} before -> TraceVisitor, indent, int {{ TraceVisitor it = (TraceVisitor) history.peek(); it.set_indent(dest); }} before -> Bus_List, first, Nonempty_Bus_List {{ Bus_List it = (Bus_List) history.peek(); Nonempty_Bus_List p = new Nonempty_Bus_List(); it.set_first(p); history.push(p); }} after -> Bus_List, first, Nonempty_Bus_List {{ history.pop(); }} before -> Town_List, first, Nonempty_Town_List {{ Town_List it = (Town_List) history.peek(); Nonempty_Town_List p = new Nonempty_Town_List(); it.set_first(p); history.push(p); }} after -> Town_List, first, Nonempty_Town_List {{ history.pop(); }} before -> Person_List, first, Nonempty_Person_List {{ Person_List it = (Person_List) history.peek(); Nonempty_Person_List p = new Nonempty_Person_List(); it.set_first(p); history.push(p); }} after -> Person_List, first, Nonempty_Person_List {{ history.pop(); }} before -> BusStop_List, first, Nonempty_BusStop_List {{ BusStop_List it = (BusStop_List) history.peek(); Nonempty_BusStop_List p = new Nonempty_BusStop_List(); it.set_first(p); history.push(p); }} after -> BusStop_List, first, Nonempty_BusStop_List {{ history.pop(); }} before -> Nonempty_Bus_List, it, Bus {{ Nonempty_Bus_List it = (Nonempty_Bus_List) history.peek(); Bus p = new Bus(); it.set_it(p); history.push(p); }} after -> Nonempty_Bus_List, it, Bus {{ history.pop(); }} before -> Nonempty_Bus_List, next, Nonempty_Bus_List {{ Nonempty_Bus_List it = (Nonempty_Bus_List) history.peek(); Nonempty_Bus_List p = new Nonempty_Bus_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Bus_List, next, Nonempty_Bus_List {{ history.pop(); }} before -> Nonempty_Town_List, it, Town {{ Nonempty_Town_List it = (Nonempty_Town_List) history.peek(); Town p = new Town(); it.set_it(p); history.push(p); }} after -> Nonempty_Town_List, it, Town {{ history.pop(); }} before -> Nonempty_Town_List, next, Nonempty_Town_List {{ Nonempty_Town_List it = (Nonempty_Town_List) history.peek(); Nonempty_Town_List p = new Nonempty_Town_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Town_List, next, Nonempty_Town_List {{ history.pop(); }} before -> Nonempty_Person_List, it, Person {{ Nonempty_Person_List it = (Nonempty_Person_List) history.peek(); Person p = new Person(); it.set_it(p); history.push(p); }} after -> Nonempty_Person_List, it, Person {{ history.pop(); }} before -> Nonempty_Person_List, next, Nonempty_Person_List {{ Nonempty_Person_List it = (Nonempty_Person_List) history.peek(); Nonempty_Person_List p = new Nonempty_Person_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Person_List, next, Nonempty_Person_List {{ history.pop(); }} before -> Nonempty_BusStop_List, it, BusStop {{ Nonempty_BusStop_List it = (Nonempty_BusStop_List) history.peek(); BusStop p = new BusStop(); it.set_it(p); history.push(p); }} after -> Nonempty_BusStop_List, it, BusStop {{ history.pop(); }} before -> Nonempty_BusStop_List, next, Nonempty_BusStop_List {{ Nonempty_BusStop_List it = (Nonempty_BusStop_List) history.peek(); Nonempty_BusStop_List p = new Nonempty_BusStop_List(); it.set_next(p); history.push(p); }} after -> Nonempty_BusStop_List, next, Nonempty_BusStop_List {{ history.pop(); }} }