// 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 -> WebScript, service_list, Service_List (@ WebScript it = (WebScript) history.peek(); Service_List p = new Service_List(); it.set_service_list(p); history.push(p); @) after -> WebScript, service_list, Service_List (@ history.pop(); @) before -> Url, url, String (@ Url it = (Url) history.peek(); it.set_url(dest); @) before -> TimeOut, timeout, float (@ TimeOut it = (TimeOut) history.peek(); it.set_timeout(dest); @) before -> TimeOut, service, Service (@ TimeOut it = (TimeOut) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_service((Service) p); history.push(p); @) after -> TimeOut, service, Service (@ history.pop(); @) before -> Repeat, service, Service (@ Repeat it = (Repeat) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_service((Service) p); history.push(p); @) after -> Repeat, service, Service (@ history.pop(); @) before -> Alternative, main, Service (@ Alternative it = (Alternative) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_main((Service) p); history.push(p); @) after -> Alternative, main, Service (@ history.pop(); @) before -> Alternative, alternate, Service (@ Alternative it = (Alternative) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_alternate((Service) p); history.push(p); @) after -> Alternative, alternate, Service (@ history.pop(); @) before -> Concurrent, service1, Service (@ Concurrent it = (Concurrent) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_service1((Service) p); history.push(p); @) after -> Concurrent, service1, Service (@ history.pop(); @) before -> Concurrent, service2, Service (@ Concurrent it = (Concurrent) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_service2((Service) p); history.push(p); @) after -> Concurrent, service2, Service (@ 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 -> Service_List, first, Nonempty_Service_List (@ Service_List it = (Service_List) history.peek(); Nonempty_Service_List p = new Nonempty_Service_List(); it.set_first(p); history.push(p); @) after -> Service_List, first, Nonempty_Service_List (@ history.pop(); @) before -> Nonempty_Service_List, it, Service (@ Nonempty_Service_List it = (Nonempty_Service_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((Service) p); history.push(p); @) after -> Nonempty_Service_List, it, Service (@ history.pop(); @) before -> Nonempty_Service_List, next, Nonempty_Service_List (@ Nonempty_Service_List it = (Nonempty_Service_List) history.peek(); Nonempty_Service_List p = new Nonempty_Service_List(); it.set_next(p); history.push(p); @) after -> Nonempty_Service_List, next, Nonempty_Service_List (@ history.pop(); @) }