// 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 -> FinishedProduct, assignment, Assignment {{ FinishedProduct it = (FinishedProduct) history.peek(); Assignment p = new Assignment(); it.set_assignment(p); history.push(p); }} after -> FinishedProduct, assignment, Assignment {{ history.pop(); }} before -> FinishedProduct, rawmaterial, RawMaterial {{ FinishedProduct it = (FinishedProduct) history.peek(); RawMaterial p = new RawMaterial(); it.set_rawmaterial(p); history.push(p); }} after -> FinishedProduct, rawmaterial, RawMaterial {{ history.pop(); }} before -> ConstraintType, relation, Relation {{ ConstraintType it = (ConstraintType) history.peek(); Relation p = new Relation(); it.set_relation(p); history.push(p); }} after -> ConstraintType, relation, Relation {{ history.pop(); }} before -> RawMaterial, constraintlist, ConstraintList {{ RawMaterial it = (RawMaterial) 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 -> RawMaterial, constraintlist, ConstraintList {{ history.pop(); }} before -> Constraint, weight, Weight {{ Constraint it = (Constraint) history.peek(); Weight p = new Weight(); it.set_weight(p); history.push(p); }} after -> Constraint, weight, Weight {{ history.pop(); }} before -> Constraint, relation, Relation {{ Constraint it = (Constraint) history.peek(); Relation p = new Relation(); it.set_relation(p); history.push(p); }} after -> Constraint, relation, Relation {{ history.pop(); }} before -> Constraint, variablelist, VariableList {{ Constraint it = (Constraint) 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 -> Constraint, variablelist, VariableList {{ history.pop(); }} 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 -> Literal, lit, Lit {{ Literal it = (Literal) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_lit((Lit) p); history.push(p); }} after -> Literal, lit, Lit {{ history.pop(); }} before -> Lit, variable, Variable {{ Lit it = (Lit) history.peek(); Variable p = new Variable(); it.set_variable(p); history.push(p); }} after -> Lit, variable, Variable {{ history.pop(); }} before -> Variable, v, Ident {{ Variable it = (Variable) history.peek(); it.set_v(dest); }} before -> Assignment, literallist, LiteralList {{ Assignment it = (Assignment) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_literallist((LiteralList) p); history.push(p); }} after -> Assignment, literallist, LiteralList {{ history.pop(); }} before -> NEConstraintList, first, Constraint {{ NEConstraintList it = (NEConstraintList) history.peek(); Constraint p = new Constraint(); it.set_first(p); history.push(p); }} after -> NEConstraintList, first, Constraint {{ history.pop(); }} before -> NEConstraintList, rest, ConstraintList {{ NEConstraintList it = (NEConstraintList) 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 -> NEConstraintList, rest, ConstraintList {{ history.pop(); }} before -> NEVariableList, first, Variable {{ NEVariableList it = (NEVariableList) history.peek(); Variable p = new Variable(); it.set_first(p); history.push(p); }} after -> NEVariableList, first, Variable {{ history.pop(); }} before -> NEVariableList, rest, VariableList {{ NEVariableList it = (NEVariableList) 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 -> NEVariableList, rest, VariableList {{ history.pop(); }} before -> NELiteralList, first, Literal {{ NELiteralList it = (NELiteralList) history.peek(); Literal p = new Literal(); it.set_first(p); history.push(p); }} after -> NELiteralList, first, Literal {{ history.pop(); }} before -> NELiteralList, rest, LiteralList {{ NELiteralList it = (NELiteralList) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_rest((LiteralList) p); history.push(p); }} after -> NELiteralList, rest, LiteralList {{ history.pop(); }} 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); }} }