// 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 -> Container, contents, List {{ Container it = (Container) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_contents((List) p); history.push(p); }} after -> Container, contents, List {{ history.pop(); }} before -> N, first, Item {{ N it = (N) history.peek(); Item p = new Item(); it.set_first(p); history.push(p); }} after -> N, first, Item {{ history.pop(); }} before -> N, rest, List {{ N it = (N) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_rest((List) p); history.push(p); }} after -> N, rest, List {{ history.pop(); }} before -> Item, name, Ident {{ Item it = (Item) history.peek(); it.set_name(dest); }} before -> Item, w, Weight {{ Item it = (Item) history.peek(); Weight p = new Weight(); it.set_w(p); history.push(p); }} after -> Item, w, Weight {{ history.pop(); }} before -> Weight, i, int {{ Weight it = (Weight) history.peek(); it.set_i(dest); }} before -> SummingVisitorDJ, total, int {{ SummingVisitorDJ it = (SummingVisitorDJ) history.peek(); it.set_total(dest); }} before -> CountingVisitorDJ, total, int {{ CountingVisitorDJ it = (CountingVisitorDJ) history.peek(); it.set_total(dest); }} before -> AverageVisitorDJ, cV, CountingVisitorDJ {{ AverageVisitorDJ it = (AverageVisitorDJ) history.peek(); CountingVisitorDJ p = new CountingVisitorDJ(); it.set_cV(p); history.push(p); }} after -> AverageVisitorDJ, cV, CountingVisitorDJ {{ history.pop(); }} before -> AverageVisitorDJ, sV, SummingVisitorDJ {{ AverageVisitorDJ it = (AverageVisitorDJ) history.peek(); SummingVisitorDJ p = new SummingVisitorDJ(); it.set_sV(p); history.push(p); }} after -> AverageVisitorDJ, sV, SummingVisitorDJ {{ history.pop(); }} before -> AverageVisitorDJ, current, float {{ AverageVisitorDJ it = (AverageVisitorDJ) history.peek(); it.set_current(dest); }} before -> ResultVisitorDJ, aV, AverageVisitorDJ {{ ResultVisitorDJ it = (ResultVisitorDJ) history.peek(); AverageVisitorDJ p = new AverageVisitorDJ(); it.set_aV(p); history.push(p); }} after -> ResultVisitorDJ, aV, AverageVisitorDJ {{ 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); }} }