// 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 -> WCNF, preamble, Preamble {{ WCNF it = (WCNF) history.peek(); Preamble p = new Preamble(); it.set_preamble(p); history.push(p); }} after -> WCNF, preamble, Preamble {{ history.pop(); }} before -> WCNF, formula, Formula {{ WCNF it = (WCNF) history.peek(); Formula p = new Formula(); it.set_formula(p); history.push(p); }} after -> WCNF, formula, Formula {{ history.pop(); }} before -> Preamble, numVars, int {{ Preamble it = (Preamble) history.peek(); it.set_numVars(dest); }} before -> Preamble, numClasues, int {{ Preamble it = (Preamble) history.peek(); it.set_numClasues(dest); }} before -> Formula, clauses, Clause_List {{ Formula it = (Formula) history.peek(); Clause_List p = new Clause_List(); it.set_clauses(p); history.push(p); }} after -> Formula, clauses, Clause_List {{ history.pop(); }} before -> Clause, weight, Weight {{ Clause it = (Clause) history.peek(); Weight p = new Weight(); it.set_weight(p); history.push(p); }} after -> Clause, weight, Weight {{ history.pop(); }} before -> Clause, literals, Literal_List {{ Clause it = (Clause) history.peek(); Literal_List p = new Literal_List(); it.set_literals(p); history.push(p); }} after -> Clause, literals, Literal_List {{ history.pop(); }} before -> Clause, clauseterminator, ClauseTerminator {{ Clause it = (Clause) history.peek(); ClauseTerminator p = new ClauseTerminator(); it.set_clauseterminator(p); history.push(p); }} after -> Clause, clauseterminator, ClauseTerminator {{ history.pop(); }} before -> Weight, v, int {{ Weight it = (Weight) history.peek(); it.set_v(dest); }} before -> Literal, variable, Variable {{ Literal it = (Literal) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_variable((Variable) p); history.push(p); }} after -> Literal, variable, Variable {{ history.pop(); }} before -> Numero, v, int {{ Numero it = (Numero) history.peek(); it.set_v(dest); }} before -> Name, v, Ident {{ Name it = (Name) history.peek(); it.set_v(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 -> Literal_List, first, Nonempty_Literal_List {{ Literal_List it = (Literal_List) history.peek(); Nonempty_Literal_List p = new Nonempty_Literal_List(); it.set_first(p); history.push(p); }} after -> Literal_List, first, Nonempty_Literal_List {{ 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_Literal_List, it, Literal {{ Nonempty_Literal_List it = (Nonempty_Literal_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((Literal) p); history.push(p); }} after -> Nonempty_Literal_List, it, Literal {{ history.pop(); }} before -> Nonempty_Literal_List, next, Nonempty_Literal_List {{ Nonempty_Literal_List it = (Nonempty_Literal_List) history.peek(); Nonempty_Literal_List p = new Nonempty_Literal_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Literal_List, next, Nonempty_Literal_List {{ history.pop(); }} }