// This file is automatically generated by Demeter/Java. 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 -> BusRoute, name, RouteName (@ BusRoute it = (BusRoute) history.peek(); RouteName p = new RouteName(); it.set_name(p); history.push(p); @) after -> BusRoute, name, RouteName (@ history.pop(); @) before -> BusRoute, totalLength, RouteLen (@ BusRoute it = (BusRoute) history.peek(); RouteLen p = new RouteLen(); it.set_totalLength(p); history.push(p); @) after -> BusRoute, totalLength, RouteLen (@ history.pop(); @) before -> BusRoute, busStops, BusStop_List (@ BusRoute it = (BusRoute) history.peek(); BusStop_List p = new BusStop_List(); it.set_busStops(p); history.push(p); @) after -> BusRoute, busStops, BusStop_List (@ history.pop(); @) 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 -> BusStop, id, StopId (@ BusStop it = (BusStop) history.peek(); StopId p = new StopId(); it.set_id(p); history.push(p); @) after -> BusStop, id, StopId (@ history.pop(); @) before -> BusStop, location, RouteLoc (@ BusStop it = (BusStop) history.peek(); RouteLoc p = new RouteLoc(); it.set_location(p); history.push(p); @) after -> BusStop, location, RouteLoc (@ history.pop(); @) before -> BusStop, waitingList, Person_List (@ BusStop it = (BusStop) history.peek(); Person_List p = new Person_List(); it.set_waitingList(p); history.push(p); @) after -> BusStop, waitingList, Person_List (@ history.pop(); @) before -> Bus, id, BusId (@ Bus it = (Bus) history.peek(); BusId p = new BusId(); it.set_id(p); history.push(p); @) after -> Bus, id, BusId (@ history.pop(); @) before -> Bus, position, RouteLoc (@ Bus it = (Bus) history.peek(); RouteLoc p = new RouteLoc(); it.set_position(p); history.push(p); @) after -> Bus, position, RouteLoc (@ history.pop(); @) before -> Bus, currentStop, StopId (@ Bus it = (Bus) history.peek(); StopId p = new StopId(); it.set_currentStop(p); history.push(p); @) after -> Bus, currentStop, StopId (@ history.pop(); @) before -> Bus, capacity, BusCapac (@ Bus it = (Bus) history.peek(); BusCapac p = new BusCapac(); it.set_capacity(p); history.push(p); @) after -> Bus, capacity, BusCapac (@ history.pop(); @) before -> Bus, speed, BusSpeed (@ Bus it = (Bus) history.peek(); BusSpeed p = new BusSpeed(); it.set_speed(p); history.push(p); @) after -> Bus, speed, BusSpeed (@ history.pop(); @) 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 -> Person, id, PersonId (@ Person it = (Person) history.peek(); PersonId p = new PersonId(); it.set_id(p); history.push(p); @) after -> Person, id, PersonId (@ history.pop(); @) before -> Person, destination, StopId (@ Person it = (Person) history.peek(); StopId p = new StopId(); it.set_destination(p); history.push(p); @) after -> Person, destination, StopId (@ history.pop(); @) before -> RouteName, v, String (@ RouteName it = (RouteName) history.peek(); it.set_v(dest); @) before -> RouteLen, v, Integer (@ RouteLen it = (RouteLen) history.peek(); it.set_v(dest); @) before -> RouteLoc, v, Integer (@ RouteLoc it = (RouteLoc) history.peek(); it.set_v(dest); @) before -> BusCapac, v, Integer (@ BusCapac it = (BusCapac) history.peek(); it.set_v(dest); @) before -> BusSpeed, v, Integer (@ BusSpeed it = (BusSpeed) history.peek(); it.set_v(dest); @) before -> StopId, v, Ident (@ StopId it = (StopId) history.peek(); it.set_v(dest); @) before -> BusId, v, Ident (@ BusId it = (BusId) history.peek(); it.set_v(dest); @) before -> PersonId, v, Ident (@ PersonId it = (PersonId) history.peek(); it.set_v(dest); @) 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 -> 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 -> 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 -> 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 -> 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 -> 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(); @) 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_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(); @) }