// 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 -> Histories, newstrategy_plist, NewStrategy_PList {{ Histories it = (Histories) history.peek(); NewStrategy_PList p = new NewStrategy_PList(); it.set_newstrategy_plist(p); history.push(p); }} after -> Histories, newstrategy_plist, NewStrategy_PList {{ history.pop(); }} before -> Histories, historypcd_plist, HistoryPcd_PList {{ Histories it = (Histories) history.peek(); HistoryPcd_PList p = new HistoryPcd_PList(); it.set_historypcd_plist(p); history.push(p); }} after -> Histories, historypcd_plist, HistoryPcd_PList {{ history.pop(); }} before -> HistoryPcd, newstrategy, NewStrategy {{ HistoryPcd it = (HistoryPcd) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_newstrategy((NewStrategy) p); history.push(p); }} after -> HistoryPcd, newstrategy, NewStrategy {{ history.pop(); }} before -> Entry, pointcut, Pointcut {{ Entry it = (Entry) history.peek(); Pointcut p = new Pointcut(); it.set_pointcut(p); history.push(p); }} after -> Entry, pointcut, Pointcut {{ history.pop(); }} before -> Exit, pointcut, Pointcut {{ Exit it = (Exit) history.peek(); Pointcut p = new Pointcut(); it.set_pointcut(p); history.push(p); }} after -> Exit, pointcut, Pointcut {{ history.pop(); }} before -> Pointcut, pointcutname, PointcutName {{ Pointcut it = (Pointcut) history.peek(); PointcutName p = new PointcutName(); it.set_pointcutname(p); history.push(p); }} after -> Pointcut, pointcutname, PointcutName {{ history.pop(); }} before -> AbstractNewStrategy, modifiers, Modifiers {{ AbstractNewStrategy it = (AbstractNewStrategy) history.peek(); Modifiers p = new Modifiers(); it.set_modifiers(p); history.push(p); }} after -> AbstractNewStrategy, modifiers, Modifiers {{ history.pop(); }} before -> AbstractNewStrategy, newstrategyname, NewStrategyName {{ AbstractNewStrategy it = (AbstractNewStrategy) history.peek(); NewStrategyName p = new NewStrategyName(); it.set_newstrategyname(p); history.push(p); }} after -> AbstractNewStrategy, newstrategyname, NewStrategyName {{ history.pop(); }} before -> AbstractNewStrategy, formals, Formals {{ AbstractNewStrategy it = (AbstractNewStrategy) history.peek(); Formals p = new Formals(); it.set_formals(p); history.push(p); }} after -> AbstractNewStrategy, formals, Formals {{ history.pop(); }} before -> ConcreteNewStrategy, modifiers, Modifiers {{ ConcreteNewStrategy it = (ConcreteNewStrategy) history.peek(); Modifiers p = new Modifiers(); it.set_modifiers(p); history.push(p); }} after -> ConcreteNewStrategy, modifiers, Modifiers {{ history.pop(); }} before -> ConcreteNewStrategy, newstrategyname, NewStrategyName {{ ConcreteNewStrategy it = (ConcreteNewStrategy) history.peek(); NewStrategyName p = new NewStrategyName(); it.set_newstrategyname(p); history.push(p); }} after -> ConcreteNewStrategy, newstrategyname, NewStrategyName {{ history.pop(); }} before -> ConcreteNewStrategy, formals, Formals {{ ConcreteNewStrategy it = (ConcreteNewStrategy) history.peek(); Formals p = new Formals(); it.set_formals(p); history.push(p); }} after -> ConcreteNewStrategy, formals, Formals {{ history.pop(); }} before -> ConcreteNewStrategy, orderednewstrategy_barlist, OrderedNewStrategy_BarList {{ ConcreteNewStrategy it = (ConcreteNewStrategy) history.peek(); OrderedNewStrategy_BarList p = new OrderedNewStrategy_BarList(); it.set_orderednewstrategy_barlist(p); history.push(p); }} after -> ConcreteNewStrategy, orderednewstrategy_barlist, OrderedNewStrategy_BarList {{ history.pop(); }} before -> NamedNewStrategyRef, newstrategyname, NewStrategyName {{ NamedNewStrategyRef it = (NamedNewStrategyRef) history.peek(); NewStrategyName p = new NewStrategyName(); it.set_newstrategyname(p); history.push(p); }} after -> NamedNewStrategyRef, newstrategyname, NewStrategyName {{ history.pop(); }} before -> NamedNewStrategyRef, actuals, Actuals {{ NamedNewStrategyRef it = (NamedNewStrategyRef) history.peek(); Actuals p = new Actuals(); it.set_actuals(p); history.push(p); }} after -> NamedNewStrategyRef, actuals, Actuals {{ history.pop(); }} before -> OrderedNewStrategy, newstrategy_plist, NewStrategy_PList {{ OrderedNewStrategy it = (OrderedNewStrategy) history.peek(); NewStrategy_PList p = new NewStrategy_PList(); it.set_newstrategy_plist(p); history.push(p); }} after -> OrderedNewStrategy, newstrategy_plist, NewStrategy_PList {{ history.pop(); }} before -> OptionalNewStrategy, newstrategy, NewStrategy {{ OptionalNewStrategy it = (OptionalNewStrategy) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_newstrategy((NewStrategy) p); history.push(p); }} after -> OptionalNewStrategy, newstrategy, NewStrategy {{ history.pop(); }} before -> ZeroOrMoreNewStrategy, newstrategy, NewStrategy {{ ZeroOrMoreNewStrategy it = (ZeroOrMoreNewStrategy) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_newstrategy((NewStrategy) p); history.push(p); }} after -> ZeroOrMoreNewStrategy, newstrategy, NewStrategy {{ history.pop(); }} before -> Formals, pair_clist, Pair_CList {{ Formals it = (Formals) history.peek(); Pair_CList p = new Pair_CList(); it.set_pair_clist(p); history.push(p); }} after -> Formals, pair_clist, Pair_CList {{ history.pop(); }} before -> Pair, typename, TypeName {{ Pair it = (Pair) history.peek(); TypeName p = new TypeName(); it.set_typename(p); history.push(p); }} after -> Pair, typename, TypeName {{ history.pop(); }} before -> Pair, variablename, VariableName {{ Pair it = (Pair) history.peek(); VariableName p = new VariableName(); it.set_variablename(p); history.push(p); }} after -> Pair, variablename, VariableName {{ history.pop(); }} before -> TypeName, ident, Ident {{ TypeName it = (TypeName) history.peek(); it.set_ident(dest); }} before -> VariableName, ident, Ident {{ VariableName it = (VariableName) history.peek(); it.set_ident(dest); }} before -> NewStrategyName, ident, Ident {{ NewStrategyName it = (NewStrategyName) history.peek(); it.set_ident(dest); }} before -> PointcutName, ident, Ident {{ PointcutName it = (PointcutName) history.peek(); it.set_ident(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 -> NewStrategy_PList, first, Nonempty_NewStrategy_PList {{ NewStrategy_PList it = (NewStrategy_PList) history.peek(); Nonempty_NewStrategy_PList p = new Nonempty_NewStrategy_PList(); it.set_first(p); history.push(p); }} after -> NewStrategy_PList, first, Nonempty_NewStrategy_PList {{ history.pop(); }} before -> HistoryPcd_PList, first, Nonempty_HistoryPcd_PList {{ HistoryPcd_PList it = (HistoryPcd_PList) history.peek(); Nonempty_HistoryPcd_PList p = new Nonempty_HistoryPcd_PList(); it.set_first(p); history.push(p); }} after -> HistoryPcd_PList, first, Nonempty_HistoryPcd_PList {{ history.pop(); }} before -> OrderedNewStrategy_BarList, first, Nonempty_OrderedNewStrategy_BarList {{ OrderedNewStrategy_BarList it = (OrderedNewStrategy_BarList) history.peek(); Nonempty_OrderedNewStrategy_BarList p = new Nonempty_OrderedNewStrategy_BarList(); it.set_first(p); history.push(p); }} after -> OrderedNewStrategy_BarList, first, Nonempty_OrderedNewStrategy_BarList {{ history.pop(); }} before -> Pair_CList, first, Nonempty_Pair_CList {{ Pair_CList it = (Pair_CList) history.peek(); Nonempty_Pair_CList p = new Nonempty_Pair_CList(); it.set_first(p); history.push(p); }} after -> Pair_CList, first, Nonempty_Pair_CList {{ history.pop(); }} before -> Nonempty_NewStrategy_PList, it, NewStrategy {{ Nonempty_NewStrategy_PList it = (Nonempty_NewStrategy_PList) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((NewStrategy) p); history.push(p); }} after -> Nonempty_NewStrategy_PList, it, NewStrategy {{ history.pop(); }} before -> Nonempty_NewStrategy_PList, next, Nonempty_NewStrategy_PList {{ Nonempty_NewStrategy_PList it = (Nonempty_NewStrategy_PList) history.peek(); Nonempty_NewStrategy_PList p = new Nonempty_NewStrategy_PList(); it.set_next(p); history.push(p); }} after -> Nonempty_NewStrategy_PList, next, Nonempty_NewStrategy_PList {{ history.pop(); }} before -> Nonempty_HistoryPcd_PList, it, HistoryPcd {{ Nonempty_HistoryPcd_PList it = (Nonempty_HistoryPcd_PList) history.peek(); HistoryPcd p = new HistoryPcd(); it.set_it(p); history.push(p); }} after -> Nonempty_HistoryPcd_PList, it, HistoryPcd {{ history.pop(); }} before -> Nonempty_HistoryPcd_PList, next, Nonempty_HistoryPcd_PList {{ Nonempty_HistoryPcd_PList it = (Nonempty_HistoryPcd_PList) history.peek(); Nonempty_HistoryPcd_PList p = new Nonempty_HistoryPcd_PList(); it.set_next(p); history.push(p); }} after -> Nonempty_HistoryPcd_PList, next, Nonempty_HistoryPcd_PList {{ history.pop(); }} before -> Nonempty_OrderedNewStrategy_BarList, it, OrderedNewStrategy {{ Nonempty_OrderedNewStrategy_BarList it = (Nonempty_OrderedNewStrategy_BarList) history.peek(); OrderedNewStrategy p = new OrderedNewStrategy(); it.set_it(p); history.push(p); }} after -> Nonempty_OrderedNewStrategy_BarList, it, OrderedNewStrategy {{ history.pop(); }} before -> Nonempty_OrderedNewStrategy_BarList, next, Nonempty_OrderedNewStrategy_BarList {{ Nonempty_OrderedNewStrategy_BarList it = (Nonempty_OrderedNewStrategy_BarList) history.peek(); Nonempty_OrderedNewStrategy_BarList p = new Nonempty_OrderedNewStrategy_BarList(); it.set_next(p); history.push(p); }} after -> Nonempty_OrderedNewStrategy_BarList, next, Nonempty_OrderedNewStrategy_BarList {{ history.pop(); }} before -> Nonempty_Pair_CList, it, Pair {{ Nonempty_Pair_CList it = (Nonempty_Pair_CList) history.peek(); Pair p = new Pair(); it.set_it(p); history.push(p); }} after -> Nonempty_Pair_CList, it, Pair {{ history.pop(); }} before -> Nonempty_Pair_CList, next, Nonempty_Pair_CList {{ Nonempty_Pair_CList it = (Nonempty_Pair_CList) history.peek(); Nonempty_Pair_CList p = new Nonempty_Pair_CList(); it.set_next(p); history.push(p); }} after -> Nonempty_Pair_CList, next, Nonempty_Pair_CList {{ history.pop(); }} }