// 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 -> CSP, constraintsatisfactionproblem_list, ConstraintSatisfactionProblem_List {{ CSP it = (CSP) history.peek(); ConstraintSatisfactionProblem_List p = new ConstraintSatisfactionProblem_List(); it.set_constraintsatisfactionproblem_list(p); history.push(p); }} after -> CSP, constraintsatisfactionproblem_list, ConstraintSatisfactionProblem_List {{ history.pop(); }} before -> ConstraintSatisfactionProblem, preamble, Preamble {{ ConstraintSatisfactionProblem it = (ConstraintSatisfactionProblem) history.peek(); Preamble p = new Preamble(); it.set_preamble(p); history.push(p); }} after -> ConstraintSatisfactionProblem, preamble, Preamble {{ history.pop(); }} before -> ConstraintSatisfactionProblem, constraints, Constraint_List {{ ConstraintSatisfactionProblem it = (ConstraintSatisfactionProblem) history.peek(); Constraint_List p = new Constraint_List(); it.set_constraints(p); history.push(p); }} after -> ConstraintSatisfactionProblem, constraints, Constraint_List {{ 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 -> Preamble, numVariables, int {{ Preamble it = (Preamble) history.peek(); it.set_numVariables(dest); }} before -> Preamble, numConstraints, int {{ Preamble it = (Preamble) history.peek(); it.set_numConstraints(dest); }} before -> Preamble, relationname_list, RelationName_List {{ Preamble it = (Preamble) history.peek(); RelationName_List p = new RelationName_List(); it.set_relationname_list(p); history.push(p); }} after -> Preamble, relationname_list, RelationName_List {{ history.pop(); }} before -> Preamble, variableAssignment, Literal {{ Preamble it = (Preamble) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_variableAssignment((Literal) p); history.push(p); }} after -> Preamble, variableAssignment, Literal {{ history.pop(); }} before -> ProperConstraint, relationname, RelationName {{ ProperConstraint it = (ProperConstraint) history.peek(); RelationName p = new RelationName(); it.set_relationname(p); history.push(p); }} after -> ProperConstraint, relationname, RelationName {{ history.pop(); }} before -> ProperConstraint, literals, Literal_List {{ ProperConstraint it = (ProperConstraint) history.peek(); Literal_List p = new Literal_List(); it.set_literals(p); history.push(p); }} after -> ProperConstraint, literals, Literal_List {{ history.pop(); }} before -> Literal, variable, Variable {{ Literal it = (Literal) history.peek(); Variable p = new Variable(); it.set_variable(p); history.push(p); }} after -> Literal, variable, Variable {{ history.pop(); }} before -> Variable, v, Ident {{ Variable it = (Variable) history.peek(); it.set_v(dest); }} before -> RelationName, v, Ident {{ RelationName it = (RelationName) history.peek(); it.set_v(dest); }} before -> Weight, v, int {{ Weight it = (Weight) 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 -> ConstraintSatisfactionProblem_List, first, Nonempty_ConstraintSatisfactionProblem_List {{ ConstraintSatisfactionProblem_List it = (ConstraintSatisfactionProblem_List) history.peek(); Nonempty_ConstraintSatisfactionProblem_List p = new Nonempty_ConstraintSatisfactionProblem_List(); it.set_first(p); history.push(p); }} after -> ConstraintSatisfactionProblem_List, first, Nonempty_ConstraintSatisfactionProblem_List {{ history.pop(); }} before -> Constraint_List, first, Nonempty_Constraint_List {{ Constraint_List it = (Constraint_List) history.peek(); Nonempty_Constraint_List p = new Nonempty_Constraint_List(); it.set_first(p); history.push(p); }} after -> Constraint_List, first, Nonempty_Constraint_List {{ history.pop(); }} before -> RelationName_List, first, Nonempty_RelationName_List {{ RelationName_List it = (RelationName_List) history.peek(); Nonempty_RelationName_List p = new Nonempty_RelationName_List(); it.set_first(p); history.push(p); }} after -> RelationName_List, first, Nonempty_RelationName_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_ConstraintSatisfactionProblem_List, it, ConstraintSatisfactionProblem {{ Nonempty_ConstraintSatisfactionProblem_List it = (Nonempty_ConstraintSatisfactionProblem_List) history.peek(); ConstraintSatisfactionProblem p = new ConstraintSatisfactionProblem(); it.set_it(p); history.push(p); }} after -> Nonempty_ConstraintSatisfactionProblem_List, it, ConstraintSatisfactionProblem {{ history.pop(); }} before -> Nonempty_ConstraintSatisfactionProblem_List, next, Nonempty_ConstraintSatisfactionProblem_List {{ Nonempty_ConstraintSatisfactionProblem_List it = (Nonempty_ConstraintSatisfactionProblem_List) history.peek(); Nonempty_ConstraintSatisfactionProblem_List p = new Nonempty_ConstraintSatisfactionProblem_List(); it.set_next(p); history.push(p); }} after -> Nonempty_ConstraintSatisfactionProblem_List, next, Nonempty_ConstraintSatisfactionProblem_List {{ history.pop(); }} before -> Nonempty_Constraint_List, it, Constraint {{ Nonempty_Constraint_List it = (Nonempty_Constraint_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((Constraint) p); history.push(p); }} after -> Nonempty_Constraint_List, it, Constraint {{ history.pop(); }} before -> Nonempty_Constraint_List, next, Nonempty_Constraint_List {{ Nonempty_Constraint_List it = (Nonempty_Constraint_List) history.peek(); Nonempty_Constraint_List p = new Nonempty_Constraint_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Constraint_List, next, Nonempty_Constraint_List {{ history.pop(); }} before -> Nonempty_RelationName_List, it, RelationName {{ Nonempty_RelationName_List it = (Nonempty_RelationName_List) history.peek(); RelationName p = new RelationName(); it.set_it(p); history.push(p); }} after -> Nonempty_RelationName_List, it, RelationName {{ history.pop(); }} before -> Nonempty_RelationName_List, next, Nonempty_RelationName_List {{ Nonempty_RelationName_List it = (Nonempty_RelationName_List) history.peek(); Nonempty_RelationName_List p = new Nonempty_RelationName_List(); it.set_next(p); history.push(p); }} after -> Nonempty_RelationName_List, next, Nonempty_RelationName_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(); }} }