// 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 -> LogicAJ, pcd_list, PCD_List {{ LogicAJ it = (LogicAJ) history.peek(); PCD_List p = new PCD_List(); it.set_pcd_list(p); history.push(p); }} after -> LogicAJ, pcd_list, PCD_List {{ history.pop(); }} before -> Within, typepat, TypePat {{ Within it = (Within) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_typepat((TypePat) p); history.push(p); }} after -> Within, typepat, TypePat {{ history.pop(); }} before -> Target, typepat, TypePat {{ Target it = (Target) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_typepat((TypePat) p); history.push(p); }} after -> Target, typepat, TypePat {{ history.pop(); }} before -> This, typepat, TypePat {{ This it = (This) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_typepat((TypePat) p); history.push(p); }} after -> This, typepat, TypePat {{ history.pop(); }} before -> Call, methodpat, MethodPat {{ Call it = (Call) history.peek(); MethodPat p = new MethodPat(); it.set_methodpat(p); history.push(p); }} after -> Call, methodpat, MethodPat {{ history.pop(); }} before -> Execution, methodpat, MethodPat {{ Execution it = (Execution) history.peek(); MethodPat p = new MethodPat(); it.set_methodpat(p); history.push(p); }} after -> Execution, methodpat, MethodPat {{ history.pop(); }} before -> Withincode, methodpat, MethodPat {{ Withincode it = (Withincode) history.peek(); MethodPat p = new MethodPat(); it.set_methodpat(p); history.push(p); }} after -> Withincode, methodpat, MethodPat {{ history.pop(); }} before -> Com, o, O {{ Com it = (Com) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_o((O) p); history.push(p); }} after -> Com, o, O {{ history.pop(); }} before -> Com, args, PCD_List {{ Com it = (Com) history.peek(); PCD_List p = new PCD_List(); it.set_args(p); history.push(p); }} after -> Com, args, PCD_List {{ history.pop(); }} before -> LMV, ident, Ident {{ LMV it = (LMV) history.peek(); it.set_ident(dest); }} before -> LMV1, lmv, LMV {{ LMV1 it = (LMV1) history.peek(); LMV p = new LMV(); it.set_lmv(p); history.push(p); }} after -> LMV1, lmv, LMV {{ history.pop(); }} before -> LMV2, lmv, LMV {{ LMV2 it = (LMV2) history.peek(); LMV p = new LMV(); it.set_lmv(p); history.push(p); }} after -> LMV2, lmv, LMV {{ history.pop(); }} before -> LMV3, lmv, LMV {{ LMV3 it = (LMV3) history.peek(); LMV p = new LMV(); it.set_lmv(p); history.push(p); }} after -> LMV3, lmv, LMV {{ history.pop(); }} before -> LLMV, ident, Ident {{ LLMV it = (LLMV) history.peek(); it.set_ident(dest); }} before -> MethodPat, modifierpart, ModifierPart {{ MethodPat it = (MethodPat) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_modifierpart((ModifierPart) p); history.push(p); }} after -> MethodPat, modifierpart, ModifierPart {{ history.pop(); }} before -> MethodPat, ret, TypePat {{ MethodPat it = (MethodPat) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_ret((TypePat) p); history.push(p); }} after -> MethodPat, ret, TypePat {{ history.pop(); }} before -> MethodPat, typ, TypePat {{ MethodPat it = (MethodPat) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_typ((TypePat) p); history.push(p); }} after -> MethodPat, typ, TypePat {{ history.pop(); }} before -> MethodPat, methodname, MethodName {{ MethodPat it = (MethodPat) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_methodname((MethodName) p); history.push(p); }} after -> MethodPat, methodname, MethodName {{ history.pop(); }} before -> MethodPat, arguments, Arguments {{ MethodPat it = (MethodPat) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_arguments((Arguments) p); history.push(p); }} after -> MethodPat, arguments, Arguments {{ history.pop(); }} before -> Simple, npat, NPat {{ Simple it = (Simple) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_npat((NPat) p); history.push(p); }} after -> Simple, npat, NPat {{ history.pop(); }} before -> Simple, subtypes, SubTypes {{ Simple it = (Simple) history.peek(); SubTypes p = new SubTypes(); it.set_subtypes(p); history.push(p); }} after -> Simple, subtypes, SubTypes {{ history.pop(); }} before -> NamePat2, namepat, NamePat {{ NamePat2 it = (NamePat2) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_namepat((NamePat) p); history.push(p); }} after -> NamePat2, namepat, NamePat {{ history.pop(); }} before -> Name, ident, Ident {{ Name it = (Name) history.peek(); it.set_ident(dest); }} before -> Compound, op, Op {{ Compound it = (Compound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_op((Op) p); history.push(p); }} after -> Compound, op, Op {{ history.pop(); }} before -> Compound, args, TypePat_List {{ Compound it = (Compound) history.peek(); TypePat_List p = new TypePat_List(); it.set_args(p); history.push(p); }} after -> Compound, args, TypePat_List {{ 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); }} before -> PCD_List, first, Nonempty_PCD_List {{ PCD_List it = (PCD_List) history.peek(); Nonempty_PCD_List p = new Nonempty_PCD_List(); it.set_first(p); history.push(p); }} after -> PCD_List, first, Nonempty_PCD_List {{ history.pop(); }} before -> TypePat_List, first, Nonempty_TypePat_List {{ TypePat_List it = (TypePat_List) history.peek(); Nonempty_TypePat_List p = new Nonempty_TypePat_List(); it.set_first(p); history.push(p); }} after -> TypePat_List, first, Nonempty_TypePat_List {{ history.pop(); }} before -> Nonempty_PCD_List, it, PCD {{ Nonempty_PCD_List it = (Nonempty_PCD_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((PCD) p); history.push(p); }} after -> Nonempty_PCD_List, it, PCD {{ history.pop(); }} before -> Nonempty_PCD_List, next, Nonempty_PCD_List {{ Nonempty_PCD_List it = (Nonempty_PCD_List) history.peek(); Nonempty_PCD_List p = new Nonempty_PCD_List(); it.set_next(p); history.push(p); }} after -> Nonempty_PCD_List, next, Nonempty_PCD_List {{ history.pop(); }} before -> Nonempty_TypePat_List, it, TypePat {{ Nonempty_TypePat_List it = (Nonempty_TypePat_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((TypePat) p); history.push(p); }} after -> Nonempty_TypePat_List, it, TypePat {{ history.pop(); }} before -> Nonempty_TypePat_List, next, Nonempty_TypePat_List {{ Nonempty_TypePat_List it = (Nonempty_TypePat_List) history.peek(); Nonempty_TypePat_List p = new Nonempty_TypePat_List(); it.set_next(p); history.push(p); }} after -> Nonempty_TypePat_List, next, Nonempty_TypePat_List {{ history.pop(); }} }