// 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 -> XPath, exp_list, Exp_List {{ XPath it = (XPath) history.peek(); Exp_List p = new Exp_List(); it.set_exp_list(p); history.push(p); }} after -> XPath, exp_list, Exp_List {{ history.pop(); }} before -> Exp, parent, Exp {{ Exp it = (Exp) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_parent((Exp) p); history.push(p); }} after -> Exp, parent, Exp {{ history.pop(); }} before -> BinaryCompound, bop, BOp {{ BinaryCompound it = (BinaryCompound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_bop((BOp) p); history.push(p); }} after -> BinaryCompound, bop, BOp {{ history.pop(); }} before -> BinaryCompound, arg1, Exp {{ BinaryCompound it = (BinaryCompound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_arg1((Exp) p); history.push(p); }} after -> BinaryCompound, arg1, Exp {{ history.pop(); }} before -> BinaryCompound, arg2, Exp {{ BinaryCompound it = (BinaryCompound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_arg2((Exp) p); history.push(p); }} after -> BinaryCompound, arg2, Exp {{ history.pop(); }} before -> UnaryCompound, uop, UOp {{ UnaryCompound it = (UnaryCompound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_uop((UOp) p); history.push(p); }} after -> UnaryCompound, uop, UOp {{ history.pop(); }} before -> UnaryCompound, arg1, Exp {{ UnaryCompound it = (UnaryCompound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_arg1((Exp) p); history.push(p); }} after -> UnaryCompound, arg1, Exp {{ history.pop(); }} before -> ElementTest, name, Name {{ ElementTest it = (ElementTest) history.peek(); Name p = new Name(); it.set_name(p); history.push(p); }} after -> ElementTest, name, Name {{ history.pop(); }} before -> Name, ident, Ident {{ Name it = (Name) history.peek(); it.set_ident(dest); }} before -> Main, s, String {{ Main it = (Main) history.peek(); it.set_s(dest); }} before -> CountingVisitor, c, int {{ CountingVisitor it = (CountingVisitor) history.peek(); it.set_c(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 -> Exp_List, first, Nonempty_Exp_List {{ Exp_List it = (Exp_List) history.peek(); Nonempty_Exp_List p = new Nonempty_Exp_List(); it.set_first(p); history.push(p); }} after -> Exp_List, first, Nonempty_Exp_List {{ history.pop(); }} before -> Nonempty_Exp_List, it, Exp {{ Nonempty_Exp_List it = (Nonempty_Exp_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((Exp) p); history.push(p); }} after -> Nonempty_Exp_List, it, Exp {{ history.pop(); }} before -> Nonempty_Exp_List, next, Nonempty_Exp_List {{ Nonempty_Exp_List it = (Nonempty_Exp_List) history.peek(); Nonempty_Exp_List p = new Nonempty_Exp_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Exp_List, next, Nonempty_Exp_List {{ history.pop(); }} }