// 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 -> node_t, node_t1, node_t1 {{ node_t it = (node_t) history.peek(); node_t1 p = new node_t1(); it.set_node_t1(p); history.push(p); }} after -> node_t, node_t1, node_t1 {{ history.pop(); }} before -> node_t1, name, Pstring {{ node_t1 it = (node_t1) history.peek(); Pstring p = new Pstring(); it.set_name(p); history.push(p); }} after -> node_t1, name, Pstring {{ history.pop(); }} before -> node_t1, dist, Puint32 {{ node_t1 it = (node_t1) history.peek(); Puint32 p = new Puint32(); it.set_dist(p); history.push(p); }} after -> node_t1, dist, Puint32 {{ history.pop(); }} before -> Internal, branches, tree_t_CList {{ Internal it = (Internal) history.peek(); tree_t_CList p = new tree_t_CList(); it.set_branches(p); history.push(p); }} after -> Internal, branches, tree_t_CList {{ history.pop(); }} before -> Internal, dist, Puint32 {{ Internal it = (Internal) history.peek(); Puint32 p = new Puint32(); it.set_dist(p); history.push(p); }} after -> Internal, dist, Puint32 {{ history.pop(); }} before -> Leaf, node_t, node_t {{ Leaf it = (Leaf) history.peek(); node_t p = new node_t(); it.set_node_t(p); history.push(p); }} after -> Leaf, node_t, node_t {{ history.pop(); }} before -> Start, body, tree_t {{ Start it = (Start) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_body((tree_t) p); history.push(p); }} after -> Start, body, tree_t {{ history.pop(); }} before -> Puint32, integer, Integer {{ Puint32 it = (Puint32) history.peek(); it.set_integer(dest); }} before -> Pstring, ident, Ident {{ Pstring it = (Pstring) history.peek(); it.set_ident(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 -> 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 -> tree_t_CList, first, Nonempty_tree_t_CList {{ tree_t_CList it = (tree_t_CList) history.peek(); Nonempty_tree_t_CList p = new Nonempty_tree_t_CList(); it.set_first(p); history.push(p); }} after -> tree_t_CList, first, Nonempty_tree_t_CList {{ history.pop(); }} before -> Nonempty_tree_t_CList, it, tree_t {{ Nonempty_tree_t_CList it = (Nonempty_tree_t_CList) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((tree_t) p); history.push(p); }} after -> Nonempty_tree_t_CList, it, tree_t {{ history.pop(); }} before -> Nonempty_tree_t_CList, next, Nonempty_tree_t_CList {{ Nonempty_tree_t_CList it = (Nonempty_tree_t_CList) history.peek(); Nonempty_tree_t_CList p = new Nonempty_tree_t_CList(); it.set_next(p); history.push(p); }} after -> Nonempty_tree_t_CList, next, Nonempty_tree_t_CList {{ history.pop(); }} }