// 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 -> TraversalAspectList, traversalaspect_listl, TraversalAspect_ListL {{ TraversalAspectList it = (TraversalAspectList) history.peek(); TraversalAspect_ListL p = new TraversalAspect_ListL(); it.set_traversalaspect_listl(p); history.push(p); }} after -> TraversalAspectList, traversalaspect_listl, TraversalAspect_ListL {{ history.pop(); }} before -> TraversalAspect, aspectname, AspectName {{ TraversalAspect it = (TraversalAspect) history.peek(); AspectName p = new AspectName(); it.set_aspectname(p); history.push(p); }} after -> TraversalAspect, aspectname, AspectName {{ history.pop(); }} before -> TraversalAspect, aspectdecl_list, AspectDecl_List {{ TraversalAspect it = (TraversalAspect) history.peek(); AspectDecl_List p = new AspectDecl_List(); it.set_aspectdecl_list(p); history.push(p); }} after -> TraversalAspect, aspectdecl_list, AspectDecl_List {{ history.pop(); }} before -> TraversalDecl, tv, TraversalVar {{ TraversalDecl it = (TraversalDecl) history.peek(); TraversalVar p = new TraversalVar(); it.set_tv(p); history.push(p); }} after -> TraversalDecl, tv, TraversalVar {{ history.pop(); }} before -> TraversalDecl, traversaldecloptions, TraversalDeclOptions {{ TraversalDecl it = (TraversalDecl) history.peek(); TraversalDeclOptions p = new TraversalDeclOptions(); it.set_traversaldecloptions(p); history.push(p); }} after -> TraversalDecl, traversaldecloptions, TraversalDeclOptions {{ history.pop(); }} before -> TraversalDecl, ts, TraversalStrategy {{ TraversalDecl it = (TraversalDecl) history.peek(); TraversalStrategy p = new TraversalStrategy(); it.set_ts(p); history.push(p); }} after -> TraversalDecl, ts, TraversalStrategy {{ history.pop(); }} before -> TraversalDeclOptions, cgvar, ClassGraphVar {{ TraversalDeclOptions it = (TraversalDeclOptions) history.peek(); ClassGraphVar p = new ClassGraphVar(); it.set_cgvar(p); history.push(p); }} after -> TraversalDeclOptions, cgvar, ClassGraphVar {{ history.pop(); }} before -> TraversalDeclOptions, visitorvar, VisitorVar {{ TraversalDeclOptions it = (TraversalDeclOptions) history.peek(); VisitorVar p = new VisitorVar(); it.set_visitorvar(p); history.push(p); }} after -> TraversalDeclOptions, visitorvar, VisitorVar {{ history.pop(); }} before -> TraversalVar, i, Ident {{ TraversalVar it = (TraversalVar) history.peek(); it.set_i(dest); }} before -> TraversalStrategy, s, String {{ TraversalStrategy it = (TraversalStrategy) history.peek(); it.set_s(dest); }} before -> VisitorDecl, visitorvar, VisitorVar {{ VisitorDecl it = (VisitorDecl) history.peek(); VisitorVar p = new VisitorVar(); it.set_visitorvar(p); history.push(p); }} after -> VisitorDecl, visitorvar, VisitorVar {{ history.pop(); }} before -> VisitorVar, ident, Ident {{ VisitorVar it = (VisitorVar) history.peek(); it.set_ident(dest); }} before -> AspectName, aname, Ident {{ AspectName it = (AspectName) history.peek(); it.set_aname(dest); }} before -> ClassGraphVar, cgName, Ident {{ ClassGraphVar it = (ClassGraphVar) history.peek(); it.set_cgName(dest); }} before -> ClassGraphVarDecl, cgvar, ClassGraphVar {{ ClassGraphVarDecl it = (ClassGraphVarDecl) history.peek(); ClassGraphVar p = new ClassGraphVar(); it.set_cgvar(p); history.push(p); }} after -> ClassGraphVarDecl, cgvar, ClassGraphVar {{ history.pop(); }} before -> DefaultClassGraphDecl, vardecl, ClassGraphVarDecl {{ DefaultClassGraphDecl it = (DefaultClassGraphDecl) history.peek(); ClassGraphVarDecl p = new ClassGraphVarDecl(); it.set_vardecl(p); history.push(p); }} after -> DefaultClassGraphDecl, vardecl, ClassGraphVarDecl {{ history.pop(); }} before -> ClassGraphSliceDecl, vardecl, ClassGraphVarDecl {{ ClassGraphSliceDecl it = (ClassGraphSliceDecl) history.peek(); ClassGraphVarDecl p = new ClassGraphVarDecl(); it.set_vardecl(p); history.push(p); }} after -> ClassGraphSliceDecl, vardecl, ClassGraphVarDecl {{ history.pop(); }} before -> ClassGraphSliceDecl, supercg, Ident {{ ClassGraphSliceDecl it = (ClassGraphSliceDecl) history.peek(); it.set_supercg(dest); }} before -> ClassGraphSliceDecl, ts, TraversalStrategy {{ ClassGraphSliceDecl it = (ClassGraphSliceDecl) history.peek(); TraversalStrategy p = new TraversalStrategy(); it.set_ts(p); history.push(p); }} after -> ClassGraphSliceDecl, ts, TraversalStrategy {{ history.pop(); }} before -> MyClassGraphListener, cgHash, java.util.Hashtable {{ MyClassGraphListener it = (MyClassGraphListener) history.peek(); it.set_cgHash(dest); }} before -> VisitorClass, classname, ClassName {{ VisitorClass it = (VisitorClass) history.peek(); ClassName p = new ClassName(); it.set_classname(p); history.push(p); }} after -> VisitorClass, classname, ClassName {{ history.pop(); }} before -> VisitorClass, visitormethod_linelist, VisitorMethod_LineList {{ VisitorClass it = (VisitorClass) history.peek(); VisitorMethod_LineList p = new VisitorMethod_LineList(); it.set_visitormethod_linelist(p); history.push(p); }} after -> VisitorClass, visitormethod_linelist, VisitorMethod_LineList {{ history.pop(); }} before -> VisitorMethod, returntype, ReturnType {{ VisitorMethod it = (VisitorMethod) history.peek(); ReturnType p = new ReturnType(); it.set_returntype(p); history.push(p); }} after -> VisitorMethod, returntype, ReturnType {{ history.pop(); }} before -> VisitorMethod, methodname, MethodName {{ VisitorMethod it = (VisitorMethod) history.peek(); MethodName p = new MethodName(); it.set_methodname(p); history.push(p); }} after -> VisitorMethod, methodname, MethodName {{ history.pop(); }} before -> VisitorMethod, adviceargumentlist, AdviceArgumentList {{ VisitorMethod it = (VisitorMethod) history.peek(); AdviceArgumentList p = new AdviceArgumentList(); it.set_adviceargumentlist(p); history.push(p); }} after -> VisitorMethod, adviceargumentlist, AdviceArgumentList {{ history.pop(); }} before -> MethodName, ident, Ident {{ MethodName it = (MethodName) history.peek(); it.set_ident(dest); }} before -> ReturnType, ident, Ident {{ ReturnType it = (ReturnType) history.peek(); it.set_ident(dest); }} before -> Argument, ident, Ident {{ Argument it = (Argument) history.peek(); it.set_ident(dest); }} before -> ClassName, ident, Ident {{ ClassName it = (ClassName) history.peek(); it.set_ident(dest); }} before -> AdviceArgumentList, argument_commalist, Argument_CommaList {{ AdviceArgumentList it = (AdviceArgumentList) history.peek(); Argument_CommaList p = new Argument_CommaList(); it.set_argument_commalist(p); history.push(p); }} after -> AdviceArgumentList, argument_commalist, Argument_CommaList {{ history.pop(); }} before -> StreamFunnel, s1, StreamConnector {{ StreamFunnel it = (StreamFunnel) history.peek(); StreamConnector p = new StreamConnector(); it.set_s1(p); history.push(p); }} after -> StreamFunnel, s1, StreamConnector {{ history.pop(); }} before -> StreamFunnel, s2, StreamConnector {{ StreamFunnel it = (StreamFunnel) history.peek(); StreamConnector p = new StreamConnector(); it.set_s2(p); history.push(p); }} after -> StreamFunnel, s2, StreamConnector {{ history.pop(); }} before -> StreamConnector, src, java.io.InputStream {{ StreamConnector it = (StreamConnector) history.peek(); it.set_src(dest); }} before -> StreamConnector, target, java.io.OutputStream {{ StreamConnector it = (StreamConnector) history.peek(); it.set_target(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 -> TraversalAspect_ListL, first, Nonempty_TraversalAspect_ListL {{ TraversalAspect_ListL it = (TraversalAspect_ListL) history.peek(); Nonempty_TraversalAspect_ListL p = new Nonempty_TraversalAspect_ListL(); it.set_first(p); history.push(p); }} after -> TraversalAspect_ListL, first, Nonempty_TraversalAspect_ListL {{ history.pop(); }} before -> AspectDecl_List, first, Nonempty_AspectDecl_List {{ AspectDecl_List it = (AspectDecl_List) history.peek(); Nonempty_AspectDecl_List p = new Nonempty_AspectDecl_List(); it.set_first(p); history.push(p); }} after -> AspectDecl_List, first, Nonempty_AspectDecl_List {{ history.pop(); }} before -> VisitorMethod_LineList, first, Nonempty_VisitorMethod_LineList {{ VisitorMethod_LineList it = (VisitorMethod_LineList) history.peek(); Nonempty_VisitorMethod_LineList p = new Nonempty_VisitorMethod_LineList(); it.set_first(p); history.push(p); }} after -> VisitorMethod_LineList, first, Nonempty_VisitorMethod_LineList {{ history.pop(); }} before -> Argument_CommaList, first, Nonempty_Argument_CommaList {{ Argument_CommaList it = (Argument_CommaList) history.peek(); Nonempty_Argument_CommaList p = new Nonempty_Argument_CommaList(); it.set_first(p); history.push(p); }} after -> Argument_CommaList, first, Nonempty_Argument_CommaList {{ history.pop(); }} before -> Nonempty_TraversalAspect_ListL, it, TraversalAspect {{ Nonempty_TraversalAspect_ListL it = (Nonempty_TraversalAspect_ListL) history.peek(); TraversalAspect p = new TraversalAspect(); it.set_it(p); history.push(p); }} after -> Nonempty_TraversalAspect_ListL, it, TraversalAspect {{ history.pop(); }} before -> Nonempty_TraversalAspect_ListL, next, Nonempty_TraversalAspect_ListL {{ Nonempty_TraversalAspect_ListL it = (Nonempty_TraversalAspect_ListL) history.peek(); Nonempty_TraversalAspect_ListL p = new Nonempty_TraversalAspect_ListL(); it.set_next(p); history.push(p); }} after -> Nonempty_TraversalAspect_ListL, next, Nonempty_TraversalAspect_ListL {{ history.pop(); }} before -> Nonempty_AspectDecl_List, it, AspectDecl {{ Nonempty_AspectDecl_List it = (Nonempty_AspectDecl_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((AspectDecl) p); history.push(p); }} after -> Nonempty_AspectDecl_List, it, AspectDecl {{ history.pop(); }} before -> Nonempty_AspectDecl_List, next, Nonempty_AspectDecl_List {{ Nonempty_AspectDecl_List it = (Nonempty_AspectDecl_List) history.peek(); Nonempty_AspectDecl_List p = new Nonempty_AspectDecl_List(); it.set_next(p); history.push(p); }} after -> Nonempty_AspectDecl_List, next, Nonempty_AspectDecl_List {{ history.pop(); }} before -> Nonempty_VisitorMethod_LineList, it, VisitorMethod {{ Nonempty_VisitorMethod_LineList it = (Nonempty_VisitorMethod_LineList) history.peek(); VisitorMethod p = new VisitorMethod(); it.set_it(p); history.push(p); }} after -> Nonempty_VisitorMethod_LineList, it, VisitorMethod {{ history.pop(); }} before -> Nonempty_VisitorMethod_LineList, next, Nonempty_VisitorMethod_LineList {{ Nonempty_VisitorMethod_LineList it = (Nonempty_VisitorMethod_LineList) history.peek(); Nonempty_VisitorMethod_LineList p = new Nonempty_VisitorMethod_LineList(); it.set_next(p); history.push(p); }} after -> Nonempty_VisitorMethod_LineList, next, Nonempty_VisitorMethod_LineList {{ history.pop(); }} before -> Nonempty_Argument_CommaList, it, Argument {{ Nonempty_Argument_CommaList it = (Nonempty_Argument_CommaList) history.peek(); Argument p = new Argument(); it.set_it(p); history.push(p); }} after -> Nonempty_Argument_CommaList, it, Argument {{ history.pop(); }} before -> Nonempty_Argument_CommaList, next, Nonempty_Argument_CommaList {{ Nonempty_Argument_CommaList it = (Nonempty_Argument_CommaList) history.peek(); Nonempty_Argument_CommaList p = new Nonempty_Argument_CommaList(); it.set_next(p); history.push(p); }} after -> Nonempty_Argument_CommaList, next, Nonempty_Argument_CommaList {{ history.pop(); }} }