// 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 -> XPath, xpexp_list, XPExp_List {{ XPath it = (XPath) history.peek(); XPExp_List p = new XPExp_List(); it.set_xpexp_list(p); history.push(p); }} after -> XPath, xpexp_list, XPExp_List {{ history.pop(); }} before -> ClassName, ident, Ident {{ ClassName it = (ClassName) history.peek(); it.set_ident(dest); }} before -> Compound, op, Op {{ Compound it = (Compound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_op((Op) p); history.push(p); }} after -> Compound, op, Op {{ history.pop(); }} before -> Compound, arg1, XPExp {{ Compound it = (Compound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_arg1((XPExp) p); history.push(p); }} after -> Compound, arg1, XPExp {{ history.pop(); }} before -> Compound, arg2, XPExp {{ Compound it = (Compound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_arg2((XPExp) p); history.push(p); }} after -> Compound, arg2, XPExp {{ 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 -> XPExp_List, first, Nonempty_XPExp_List {{ XPExp_List it = (XPExp_List) history.peek(); Nonempty_XPExp_List p = new Nonempty_XPExp_List(); it.set_first(p); history.push(p); }} after -> XPExp_List, first, Nonempty_XPExp_List {{ history.pop(); }} before -> Nonempty_XPExp_List, it, XPExp {{ Nonempty_XPExp_List it = (Nonempty_XPExp_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((XPExp) p); history.push(p); }} after -> Nonempty_XPExp_List, it, XPExp {{ history.pop(); }} before -> Nonempty_XPExp_List, next, Nonempty_XPExp_List {{ Nonempty_XPExp_List it = (Nonempty_XPExp_List) history.peek(); Nonempty_XPExp_List p = new Nonempty_XPExp_List(); it.set_next(p); history.push(p); }} after -> Nonempty_XPExp_List, next, Nonempty_XPExp_List {{ history.pop(); }} }