// 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 -> Examples, sawql_list, SawQL_List {{ Examples it = (Examples) history.peek(); SawQL_List p = new SawQL_List(); it.set_sawql_list(p); history.push(p); }} after -> Examples, sawql_list, SawQL_List {{ history.pop(); }} before -> SawQL, element, Element {{ SawQL it = (SawQL) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_element((Element) p); history.push(p); }} after -> SawQL, element, Element {{ history.pop(); }} before -> SawQL, reltimeelement_list, RelTimeElement_List {{ SawQL it = (SawQL) history.peek(); RelTimeElement_List p = new RelTimeElement_List(); it.set_reltimeelement_list(p); history.push(p); }} after -> SawQL, reltimeelement_list, RelTimeElement_List {{ history.pop(); }} before -> RelTimeElement, reltime, RelTime {{ RelTimeElement it = (RelTimeElement) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_reltime((RelTime) p); history.push(p); }} after -> RelTimeElement, reltime, RelTime {{ history.pop(); }} before -> RelTimeElement, element, Element {{ RelTimeElement it = (RelTimeElement) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_element((Element) p); history.push(p); }} after -> RelTimeElement, element, Element {{ history.pop(); }} before -> Simple, keyword, Keyword {{ Simple it = (Simple) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_keyword((Keyword) p); history.push(p); }} after -> Simple, keyword, Keyword {{ history.pop(); }} before -> Simple, parameter, Parameter {{ Simple it = (Simple) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_parameter((Parameter) p); history.push(p); }} after -> Simple, parameter, Parameter {{ history.pop(); }} 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, SubQuery_List {{ Compound it = (Compound) history.peek(); SubQuery_List p = new SubQuery_List(); it.set_args(p); history.push(p); }} after -> Compound, args, SubQuery_List {{ history.pop(); }} before -> Minutes, i, int {{ Minutes it = (Minutes) history.peek(); it.set_i(dest); }} before -> Constant, string, String {{ Constant it = (Constant) history.peek(); it.set_string(dest); }} before -> Variable, variablename, VariableName {{ Variable it = (Variable) history.peek(); VariableName p = new VariableName(); it.set_variablename(p); history.push(p); }} after -> Variable, variablename, VariableName {{ history.pop(); }} before -> VariableName, ident, Ident {{ VariableName it = (VariableName) 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 -> SawQL_List, first, Nonempty_SawQL_List {{ SawQL_List it = (SawQL_List) history.peek(); Nonempty_SawQL_List p = new Nonempty_SawQL_List(); it.set_first(p); history.push(p); }} after -> SawQL_List, first, Nonempty_SawQL_List {{ history.pop(); }} before -> RelTimeElement_List, first, Nonempty_RelTimeElement_List {{ RelTimeElement_List it = (RelTimeElement_List) history.peek(); Nonempty_RelTimeElement_List p = new Nonempty_RelTimeElement_List(); it.set_first(p); history.push(p); }} after -> RelTimeElement_List, first, Nonempty_RelTimeElement_List {{ history.pop(); }} before -> SubQuery_List, first, Nonempty_SubQuery_List {{ SubQuery_List it = (SubQuery_List) history.peek(); Nonempty_SubQuery_List p = new Nonempty_SubQuery_List(); it.set_first(p); history.push(p); }} after -> SubQuery_List, first, Nonempty_SubQuery_List {{ history.pop(); }} before -> Nonempty_SawQL_List, it, SawQL {{ Nonempty_SawQL_List it = (Nonempty_SawQL_List) history.peek(); SawQL p = new SawQL(); it.set_it(p); history.push(p); }} after -> Nonempty_SawQL_List, it, SawQL {{ history.pop(); }} before -> Nonempty_SawQL_List, next, Nonempty_SawQL_List {{ Nonempty_SawQL_List it = (Nonempty_SawQL_List) history.peek(); Nonempty_SawQL_List p = new Nonempty_SawQL_List(); it.set_next(p); history.push(p); }} after -> Nonempty_SawQL_List, next, Nonempty_SawQL_List {{ history.pop(); }} before -> Nonempty_RelTimeElement_List, it, RelTimeElement {{ Nonempty_RelTimeElement_List it = (Nonempty_RelTimeElement_List) history.peek(); RelTimeElement p = new RelTimeElement(); it.set_it(p); history.push(p); }} after -> Nonempty_RelTimeElement_List, it, RelTimeElement {{ history.pop(); }} before -> Nonempty_RelTimeElement_List, next, Nonempty_RelTimeElement_List {{ Nonempty_RelTimeElement_List it = (Nonempty_RelTimeElement_List) history.peek(); Nonempty_RelTimeElement_List p = new Nonempty_RelTimeElement_List(); it.set_next(p); history.push(p); }} after -> Nonempty_RelTimeElement_List, next, Nonempty_RelTimeElement_List {{ history.pop(); }} before -> Nonempty_SubQuery_List, it, SubQuery {{ Nonempty_SubQuery_List it = (Nonempty_SubQuery_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((SubQuery) p); history.push(p); }} after -> Nonempty_SubQuery_List, it, SubQuery {{ history.pop(); }} before -> Nonempty_SubQuery_List, next, Nonempty_SubQuery_List {{ Nonempty_SubQuery_List it = (Nonempty_SubQuery_List) history.peek(); Nonempty_SubQuery_List p = new Nonempty_SubQuery_List(); it.set_next(p); history.push(p); }} after -> Nonempty_SubQuery_List, next, Nonempty_SubQuery_List {{ history.pop(); }} }