// 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 -> Binder, clauses, Clause_List {{ Binder it = (Binder) history.peek(); Clause_List p = new Clause_List(); it.set_clauses(p); history.push(p); }} after -> Binder, clauses, Clause_List {{ history.pop(); }} before -> Clause, head, Atom {{ Clause it = (Clause) history.peek(); Atom p = new Atom(); it.set_head(p); history.push(p); }} after -> Clause, head, Atom {{ history.pop(); }} before -> Clause, body, Atom_CList {{ Clause it = (Clause) history.peek(); Atom_CList p = new Atom_CList(); it.set_body(p); history.push(p); }} after -> Clause, body, Atom_CList {{ history.pop(); }} before -> Atom, context, Term {{ Atom it = (Atom) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_context((Term) p); history.push(p); }} after -> Atom, context, Term {{ history.pop(); }} before -> Atom, pred, Constant {{ Atom it = (Atom) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_pred((Constant) p); history.push(p); }} after -> Atom, pred, Constant {{ history.pop(); }} before -> Atom, args, Term_PCList {{ Atom it = (Atom) history.peek(); Term_PCList p = new Term_PCList(); it.set_args(p); history.push(p); }} after -> Atom, args, Term_PCList {{ history.pop(); }} before -> IdentConstant, ident, Ident {{ IdentConstant it = (IdentConstant) history.peek(); it.set_ident(dest); }} before -> StringConstant, string, String {{ StringConstant it = (StringConstant) history.peek(); it.set_string(dest); }} before -> VariableName, ident, Ident {{ VariableName it = (VariableName) history.peek(); it.set_ident(dest); }} before -> UIdent, ident, Ident {{ UIdent it = (UIdent) history.peek(); it.set_ident(dest); }} before -> Main, s, String {{ Main it = (Main) history.peek(); it.set_s(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 -> Clause_List, first, Nonempty_Clause_List {{ Clause_List it = (Clause_List) history.peek(); Nonempty_Clause_List p = new Nonempty_Clause_List(); it.set_first(p); history.push(p); }} after -> Clause_List, first, Nonempty_Clause_List {{ history.pop(); }} before -> Atom_CList, first, Nonempty_Atom_CList {{ Atom_CList it = (Atom_CList) history.peek(); Nonempty_Atom_CList p = new Nonempty_Atom_CList(); it.set_first(p); history.push(p); }} after -> Atom_CList, first, Nonempty_Atom_CList {{ history.pop(); }} before -> Term_PCList, first, Nonempty_Term_PCList {{ Term_PCList it = (Term_PCList) history.peek(); Nonempty_Term_PCList p = new Nonempty_Term_PCList(); it.set_first(p); history.push(p); }} after -> Term_PCList, first, Nonempty_Term_PCList {{ history.pop(); }} before -> Nonempty_Clause_List, it, Clause {{ Nonempty_Clause_List it = (Nonempty_Clause_List) history.peek(); Clause p = new Clause(); it.set_it(p); history.push(p); }} after -> Nonempty_Clause_List, it, Clause {{ history.pop(); }} before -> Nonempty_Clause_List, next, Nonempty_Clause_List {{ Nonempty_Clause_List it = (Nonempty_Clause_List) history.peek(); Nonempty_Clause_List p = new Nonempty_Clause_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Clause_List, next, Nonempty_Clause_List {{ history.pop(); }} before -> Nonempty_Atom_CList, it, Atom {{ Nonempty_Atom_CList it = (Nonempty_Atom_CList) history.peek(); Atom p = new Atom(); it.set_it(p); history.push(p); }} after -> Nonempty_Atom_CList, it, Atom {{ history.pop(); }} before -> Nonempty_Atom_CList, next, Nonempty_Atom_CList {{ Nonempty_Atom_CList it = (Nonempty_Atom_CList) history.peek(); Nonempty_Atom_CList p = new Nonempty_Atom_CList(); it.set_next(p); history.push(p); }} after -> Nonempty_Atom_CList, next, Nonempty_Atom_CList {{ history.pop(); }} before -> Nonempty_Term_PCList, it, Term {{ Nonempty_Term_PCList it = (Nonempty_Term_PCList) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((Term) p); history.push(p); }} after -> Nonempty_Term_PCList, it, Term {{ history.pop(); }} before -> Nonempty_Term_PCList, next, Nonempty_Term_PCList {{ Nonempty_Term_PCList it = (Nonempty_Term_PCList) history.peek(); Nonempty_Term_PCList p = new Nonempty_Term_PCList(); it.set_next(p); history.push(p); }} after -> Nonempty_Term_PCList, next, Nonempty_Term_PCList {{ history.pop(); }} }