// 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 -> PathwayModelingLanguage, domains, DomDecl_List {{ PathwayModelingLanguage it = (PathwayModelingLanguage) history.peek(); DomDecl_List p = new DomDecl_List(); it.set_domains(p); history.push(p); }} after -> PathwayModelingLanguage, domains, DomDecl_List {{ history.pop(); }} before -> PathwayModelingLanguage, groups, GrpDecl_List {{ PathwayModelingLanguage it = (PathwayModelingLanguage) history.peek(); GrpDecl_List p = new GrpDecl_List(); it.set_groups(p); history.push(p); }} after -> PathwayModelingLanguage, groups, GrpDecl_List {{ history.pop(); }} before -> PathwayModelingLanguage, compartments, ComDecl_List {{ PathwayModelingLanguage it = (PathwayModelingLanguage) history.peek(); ComDecl_List p = new ComDecl_List(); it.set_compartments(p); history.push(p); }} after -> PathwayModelingLanguage, compartments, ComDecl_List {{ history.pop(); }} before -> DomDecl, domainid, DomainId {{ DomDecl it = (DomDecl) history.peek(); DomainId p = new DomainId(); it.set_domainid(p); history.push(p); }} after -> DomDecl, domainid, DomainId {{ history.pop(); }} before -> DomDecl, domexp, DomExp {{ DomDecl it = (DomDecl) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_domexp((DomExp) p); history.push(p); }} after -> DomDecl, domexp, DomExp {{ history.pop(); }} before -> DomainExpression, bridge, Bridge {{ DomainExpression it = (DomainExpression) history.peek(); Bridge p = new Bridge(); it.set_bridge(p); history.push(p); }} after -> DomainExpression, bridge, Bridge {{ history.pop(); }} before -> DomainExpression, siteid_seq, SiteId_Seq {{ DomainExpression it = (DomainExpression) history.peek(); SiteId_Seq p = new SiteId_Seq(); it.set_siteid_seq(p); history.push(p); }} after -> DomainExpression, siteid_seq, SiteId_Seq {{ history.pop(); }} before -> DomainExpression, domdesc, DomDesc {{ DomainExpression it = (DomainExpression) history.peek(); DomDesc p = new DomDesc(); it.set_domdesc(p); history.push(p); }} after -> DomainExpression, domdesc, DomDesc {{ history.pop(); }} before -> DomainExpression, ruleid_seq, RuleId_Seq {{ DomainExpression it = (DomainExpression) history.peek(); RuleId_Seq p = new RuleId_Seq(); it.set_ruleid_seq(p); history.push(p); }} after -> DomainExpression, ruleid_seq, RuleId_Seq {{ history.pop(); }} before -> GrpDecl, groupid, GroupId {{ GrpDecl it = (GrpDecl) history.peek(); GroupId p = new GroupId(); it.set_groupid(p); history.push(p); }} after -> GrpDecl, groupid, GroupId {{ history.pop(); }} before -> GrpDecl, grpexp, GrpExp {{ GrpDecl it = (GrpDecl) history.peek(); GrpExp p = new GrpExp(); it.set_grpexp(p); history.push(p); }} after -> GrpDecl, grpexp, GrpExp {{ history.pop(); }} before -> ComDecl, compartmentid, CompartmentId {{ ComDecl it = (ComDecl) history.peek(); CompartmentId p = new CompartmentId(); it.set_compartmentid(p); history.push(p); }} after -> ComDecl, compartmentid, CompartmentId {{ history.pop(); }} before -> ComDecl, comexp, ComExp {{ ComDecl it = (ComDecl) history.peek(); ComExp p = new ComExp(); it.set_comexp(p); history.push(p); }} after -> ComDecl, comexp, ComExp {{ history.pop(); }} before -> SiteId, ident, Ident {{ SiteId it = (SiteId) history.peek(); it.set_ident(dest); }} before -> RuleId, ident, Ident {{ RuleId it = (RuleId) history.peek(); it.set_ident(dest); }} before -> DomainId, ident, Ident {{ DomainId it = (DomainId) history.peek(); it.set_ident(dest); }} before -> GroupId, ident, Ident {{ GroupId it = (GroupId) history.peek(); it.set_ident(dest); }} before -> CompartmentId, ident, Ident {{ CompartmentId it = (CompartmentId) 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 -> DomDecl_List, first, Nonempty_DomDecl_List {{ DomDecl_List it = (DomDecl_List) history.peek(); Nonempty_DomDecl_List p = new Nonempty_DomDecl_List(); it.set_first(p); history.push(p); }} after -> DomDecl_List, first, Nonempty_DomDecl_List {{ history.pop(); }} before -> GrpDecl_List, first, Nonempty_GrpDecl_List {{ GrpDecl_List it = (GrpDecl_List) history.peek(); Nonempty_GrpDecl_List p = new Nonempty_GrpDecl_List(); it.set_first(p); history.push(p); }} after -> GrpDecl_List, first, Nonempty_GrpDecl_List {{ history.pop(); }} before -> ComDecl_List, first, Nonempty_ComDecl_List {{ ComDecl_List it = (ComDecl_List) history.peek(); Nonempty_ComDecl_List p = new Nonempty_ComDecl_List(); it.set_first(p); history.push(p); }} after -> ComDecl_List, first, Nonempty_ComDecl_List {{ history.pop(); }} before -> SiteId_Seq, first, Nonempty_SiteId_Seq {{ SiteId_Seq it = (SiteId_Seq) history.peek(); Nonempty_SiteId_Seq p = new Nonempty_SiteId_Seq(); it.set_first(p); history.push(p); }} after -> SiteId_Seq, first, Nonempty_SiteId_Seq {{ history.pop(); }} before -> RuleId_Seq, first, Nonempty_RuleId_Seq {{ RuleId_Seq it = (RuleId_Seq) history.peek(); Nonempty_RuleId_Seq p = new Nonempty_RuleId_Seq(); it.set_first(p); history.push(p); }} after -> RuleId_Seq, first, Nonempty_RuleId_Seq {{ history.pop(); }} before -> Nonempty_DomDecl_List, it, DomDecl {{ Nonempty_DomDecl_List it = (Nonempty_DomDecl_List) history.peek(); DomDecl p = new DomDecl(); it.set_it(p); history.push(p); }} after -> Nonempty_DomDecl_List, it, DomDecl {{ history.pop(); }} before -> Nonempty_DomDecl_List, next, Nonempty_DomDecl_List {{ Nonempty_DomDecl_List it = (Nonempty_DomDecl_List) history.peek(); Nonempty_DomDecl_List p = new Nonempty_DomDecl_List(); it.set_next(p); history.push(p); }} after -> Nonempty_DomDecl_List, next, Nonempty_DomDecl_List {{ history.pop(); }} before -> Nonempty_GrpDecl_List, it, GrpDecl {{ Nonempty_GrpDecl_List it = (Nonempty_GrpDecl_List) history.peek(); GrpDecl p = new GrpDecl(); it.set_it(p); history.push(p); }} after -> Nonempty_GrpDecl_List, it, GrpDecl {{ history.pop(); }} before -> Nonempty_GrpDecl_List, next, Nonempty_GrpDecl_List {{ Nonempty_GrpDecl_List it = (Nonempty_GrpDecl_List) history.peek(); Nonempty_GrpDecl_List p = new Nonempty_GrpDecl_List(); it.set_next(p); history.push(p); }} after -> Nonempty_GrpDecl_List, next, Nonempty_GrpDecl_List {{ history.pop(); }} before -> Nonempty_ComDecl_List, it, ComDecl {{ Nonempty_ComDecl_List it = (Nonempty_ComDecl_List) history.peek(); ComDecl p = new ComDecl(); it.set_it(p); history.push(p); }} after -> Nonempty_ComDecl_List, it, ComDecl {{ history.pop(); }} before -> Nonempty_ComDecl_List, next, Nonempty_ComDecl_List {{ Nonempty_ComDecl_List it = (Nonempty_ComDecl_List) history.peek(); Nonempty_ComDecl_List p = new Nonempty_ComDecl_List(); it.set_next(p); history.push(p); }} after -> Nonempty_ComDecl_List, next, Nonempty_ComDecl_List {{ history.pop(); }} before -> Nonempty_SiteId_Seq, it, SiteId {{ Nonempty_SiteId_Seq it = (Nonempty_SiteId_Seq) history.peek(); SiteId p = new SiteId(); it.set_it(p); history.push(p); }} after -> Nonempty_SiteId_Seq, it, SiteId {{ history.pop(); }} before -> Nonempty_SiteId_Seq, next, Nonempty_SiteId_Seq {{ Nonempty_SiteId_Seq it = (Nonempty_SiteId_Seq) history.peek(); Nonempty_SiteId_Seq p = new Nonempty_SiteId_Seq(); it.set_next(p); history.push(p); }} after -> Nonempty_SiteId_Seq, next, Nonempty_SiteId_Seq {{ history.pop(); }} before -> Nonempty_RuleId_Seq, it, RuleId {{ Nonempty_RuleId_Seq it = (Nonempty_RuleId_Seq) history.peek(); RuleId p = new RuleId(); it.set_it(p); history.push(p); }} after -> Nonempty_RuleId_Seq, it, RuleId {{ history.pop(); }} before -> Nonempty_RuleId_Seq, next, Nonempty_RuleId_Seq {{ Nonempty_RuleId_Seq it = (Nonempty_RuleId_Seq) history.peek(); Nonempty_RuleId_Seq p = new Nonempty_RuleId_Seq(); it.set_next(p); history.push(p); }} after -> Nonempty_RuleId_Seq, next, Nonempty_RuleId_Seq {{ history.pop(); }} }