// 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 -> CSP, constraintlist, ConstraintList {{ CSP it = (CSP) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_constraintlist((ConstraintList) p); history.push(p); }} after -> CSP, constraintlist, ConstraintList {{ history.pop(); }} before -> NewC, weight, Weight {{ NewC it = (NewC) history.peek(); Weight p = new Weight(); it.set_weight(p); history.push(p); }} after -> NewC, weight, Weight {{ history.pop(); }} before -> NewC, variablelist, VariableList {{ NewC it = (NewC) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_variablelist((VariableList) p); history.push(p); }} after -> NewC, variablelist, VariableList {{ history.pop(); }} before -> NewC, kind, Kind {{ NewC it = (NewC) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_kind((Kind) p); history.push(p); }} after -> NewC, kind, Kind {{ history.pop(); }} before -> NewC, constant, int {{ NewC it = (NewC) history.peek(); it.set_constant(dest); }} before -> OldC, weight, Weight {{ OldC it = (OldC) history.peek(); Weight p = new Weight(); it.set_weight(p); history.push(p); }} after -> OldC, weight, Weight {{ history.pop(); }} before -> OldC, relation, Relation {{ OldC it = (OldC) history.peek(); Relation p = new Relation(); it.set_relation(p); history.push(p); }} after -> OldC, relation, Relation {{ history.pop(); }} before -> OldC, variablelist, VariableList {{ OldC it = (OldC) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_variablelist((VariableList) p); history.push(p); }} after -> OldC, variablelist, VariableList {{ history.pop(); }} before -> Variable, v, Ident {{ Variable it = (Variable) history.peek(); it.set_v(dest); }} before -> Relation, v, int {{ Relation it = (Relation) history.peek(); it.set_v(dest); }} before -> Weight, v, int {{ Weight it = (Weight) history.peek(); it.set_v(dest); }} before -> NECL, first, Constraint {{ NECL it = (NECL) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_first((Constraint) p); history.push(p); }} after -> NECL, first, Constraint {{ history.pop(); }} before -> NECL, rest, ConstraintList {{ NECL it = (NECL) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_rest((ConstraintList) p); history.push(p); }} after -> NECL, rest, ConstraintList {{ history.pop(); }} before -> NEVL, first, Variable {{ NEVL it = (NEVL) history.peek(); Variable p = new Variable(); it.set_first(p); history.push(p); }} after -> NEVL, first, Variable {{ history.pop(); }} before -> NEVL, rest, VariableList {{ NEVL it = (NEVL) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_rest((VariableList) p); history.push(p); }} after -> NEVL, rest, VariableList {{ 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); }} }