// 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 -> Bank, businessunit_list, BusinessUnit_List {{ Bank it = (Bank) history.peek(); BusinessUnit_List p = new BusinessUnit_List(); it.set_businessunit_list(p); history.push(p); }} after -> Bank, businessunit_list, BusinessUnit_List {{ history.pop(); }} before -> BusinessUnit, index, Index {{ BusinessUnit it = (BusinessUnit) history.peek(); Index p = new Index(); it.set_index(p); history.push(p); }} after -> BusinessUnit, index, Index {{ history.pop(); }} before -> BusinessUnit, country, Country {{ BusinessUnit it = (BusinessUnit) history.peek(); Country p = new Country(); it.set_country(p); history.push(p); }} after -> BusinessUnit, country, Country {{ history.pop(); }} before -> BusinessUnit, location, Location {{ BusinessUnit it = (BusinessUnit) history.peek(); Location p = new Location(); it.set_location(p); history.push(p); }} after -> BusinessUnit, location, Location {{ history.pop(); }} before -> BusinessUnit, party_list, Party_List {{ BusinessUnit it = (BusinessUnit) history.peek(); Party_List p = new Party_List(); it.set_party_list(p); history.push(p); }} after -> BusinessUnit, party_list, Party_List {{ history.pop(); }} before -> Party, agreement, Agreement {{ Party it = (Party) history.peek(); Agreement p = new Agreement(); it.set_agreement(p); history.push(p); }} after -> Party, agreement, Agreement {{ history.pop(); }} before -> Party, partyid, PartyId {{ Party it = (Party) history.peek(); PartyId p = new PartyId(); it.set_partyid(p); history.push(p); }} after -> Party, partyid, PartyId {{ history.pop(); }} before -> Individual, firstname, FirstName {{ Individual it = (Individual) history.peek(); FirstName p = new FirstName(); it.set_firstname(p); history.push(p); }} after -> Individual, firstname, FirstName {{ history.pop(); }} before -> Individual, lastname, LastName {{ Individual it = (Individual) history.peek(); LastName p = new LastName(); it.set_lastname(p); history.push(p); }} after -> Individual, lastname, LastName {{ history.pop(); }} before -> Individual, birthdate, Date {{ Individual it = (Individual) history.peek(); Date p = new Date(); it.set_birthdate(p); history.push(p); }} after -> Individual, birthdate, Date {{ history.pop(); }} before -> CorporateBody, companyname, CompanyName {{ CorporateBody it = (CorporateBody) history.peek(); CompanyName p = new CompanyName(); it.set_companyname(p); history.push(p); }} after -> CorporateBody, companyname, CompanyName {{ history.pop(); }} before -> CorporateBody, rating, Rating {{ CorporateBody it = (CorporateBody) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_rating((Rating) p); history.push(p); }} after -> CorporateBody, rating, Rating {{ history.pop(); }} before -> Agreement, contract_list, Contract_List {{ Agreement it = (Agreement) history.peek(); Contract_List p = new Contract_List(); it.set_contract_list(p); history.push(p); }} after -> Agreement, contract_list, Contract_List {{ history.pop(); }} before -> Agreement, agr_rule_list, Agr_Rule_List {{ Agreement it = (Agreement) history.peek(); Agr_Rule_List p = new Agr_Rule_List(); it.set_agr_rule_list(p); history.push(p); }} after -> Agreement, agr_rule_list, Agr_Rule_List {{ history.pop(); }} before -> Agreement, statement_ending, Day {{ Agreement it = (Agreement) history.peek(); Day p = new Day(); it.set_statement_ending(p); history.push(p); }} after -> Agreement, statement_ending, Day {{ history.pop(); }} before -> FirstName, string, String {{ FirstName it = (FirstName) history.peek(); it.set_string(dest); }} before -> LastName, string, String {{ LastName it = (LastName) history.peek(); it.set_string(dest); }} before -> CompanyName, string, String {{ CompanyName it = (CompanyName) history.peek(); it.set_string(dest); }} before -> PartyId, partyId, int {{ PartyId it = (PartyId) history.peek(); it.set_partyId(dest); }} before -> Contract, index, Index {{ Contract it = (Contract) history.peek(); Index p = new Index(); it.set_index(p); history.push(p); }} after -> Contract, index, Index {{ history.pop(); }} before -> Contract, location, Location {{ Contract it = (Contract) history.peek(); Location p = new Location(); it.set_location(p); history.push(p); }} after -> Contract, location, Location {{ history.pop(); }} before -> Contract, portfolios, Portfolio_List {{ Contract it = (Contract) history.peek(); Portfolio_List p = new Portfolio_List(); it.set_portfolios(p); history.push(p); }} after -> Contract, portfolios, Portfolio_List {{ history.pop(); }} before -> Agr_Rule, rule, Rule {{ Agr_Rule it = (Agr_Rule) history.peek(); Rule p = new Rule(); it.set_rule(p); history.push(p); }} after -> Agr_Rule, rule, Rule {{ history.pop(); }} before -> Agr_Rule, description, Description {{ Agr_Rule it = (Agr_Rule) history.peek(); Description p = new Description(); it.set_description(p); history.push(p); }} after -> Agr_Rule, description, Description {{ history.pop(); }} before -> Rule, rule, boolean {{ Rule it = (Rule) history.peek(); it.set_rule(dest); }} before -> Portfolio, index, Index {{ Portfolio it = (Portfolio) history.peek(); Index p = new Index(); it.set_index(p); history.push(p); }} after -> Portfolio, index, Index {{ history.pop(); }} before -> Portfolio, description, Description {{ Portfolio it = (Portfolio) history.peek(); Description p = new Description(); it.set_description(p); history.push(p); }} after -> Portfolio, description, Description {{ history.pop(); }} before -> Portfolio, accounts, Account_List {{ Portfolio it = (Portfolio) history.peek(); Account_List p = new Account_List(); it.set_accounts(p); history.push(p); }} after -> Portfolio, accounts, Account_List {{ history.pop(); }} before -> Account, postings, Posting_List {{ Account it = (Account) history.peek(); Posting_List p = new Posting_List(); it.set_postings(p); history.push(p); }} after -> Account, postings, Posting_List {{ history.pop(); }} before -> Account, accountid, AccountID {{ Account it = (Account) history.peek(); AccountID p = new AccountID(); it.set_accountid(p); history.push(p); }} after -> Account, accountid, AccountID {{ history.pop(); }} before -> Account, accounttype, AccountType {{ Account it = (Account) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_accounttype((AccountType) p); history.push(p); }} after -> Account, accounttype, AccountType {{ history.pop(); }} before -> Account, agreement, Agreement {{ Account it = (Account) history.peek(); Agreement p = new Agreement(); it.set_agreement(p); history.push(p); }} after -> Account, agreement, Agreement {{ history.pop(); }} before -> Posting, amount, Amount {{ Posting it = (Posting) history.peek(); Amount p = new Amount(); it.set_amount(p); history.push(p); }} after -> Posting, amount, Amount {{ history.pop(); }} before -> Posting, date, Date {{ Posting it = (Posting) history.peek(); Date p = new Date(); it.set_date(p); history.push(p); }} after -> Posting, date, Date {{ history.pop(); }} before -> AccountID, account_id, int {{ AccountID it = (AccountID) history.peek(); it.set_account_id(dest); }} before -> Amount, amount, int {{ Amount it = (Amount) history.peek(); it.set_amount(dest); }} before -> Description, string, String {{ Description it = (Description) history.peek(); it.set_string(dest); }} before -> Index, index, int {{ Index it = (Index) history.peek(); it.set_index(dest); }} before -> Location, string, String {{ Location it = (Location) history.peek(); it.set_string(dest); }} before -> Country, string, String {{ Country it = (Country) history.peek(); it.set_string(dest); }} before -> Date, month, Month {{ Date it = (Date) history.peek(); Month p = new Month(); it.set_month(p); history.push(p); }} after -> Date, month, Month {{ history.pop(); }} before -> Date, day, Day {{ Date it = (Date) history.peek(); Day p = new Day(); it.set_day(p); history.push(p); }} after -> Date, day, Day {{ history.pop(); }} before -> Date, year, Year {{ Date it = (Date) history.peek(); Year p = new Year(); it.set_year(p); history.push(p); }} after -> Date, year, Year {{ history.pop(); }} before -> Month, month, int {{ Month it = (Month) history.peek(); it.set_month(dest); }} before -> Day, day, int {{ Day it = (Day) history.peek(); it.set_day(dest); }} before -> Year, year, int {{ Year it = (Year) history.peek(); it.set_year(dest); }} before -> Main, s, String {{ Main it = (Main) history.peek(); it.set_s(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 -> BusinessUnit_List, first, Nonempty_BusinessUnit_List {{ BusinessUnit_List it = (BusinessUnit_List) history.peek(); Nonempty_BusinessUnit_List p = new Nonempty_BusinessUnit_List(); it.set_first(p); history.push(p); }} after -> BusinessUnit_List, first, Nonempty_BusinessUnit_List {{ history.pop(); }} before -> Party_List, first, Nonempty_Party_List {{ Party_List it = (Party_List) history.peek(); Nonempty_Party_List p = new Nonempty_Party_List(); it.set_first(p); history.push(p); }} after -> Party_List, first, Nonempty_Party_List {{ history.pop(); }} before -> Contract_List, first, Nonempty_Contract_List {{ Contract_List it = (Contract_List) history.peek(); Nonempty_Contract_List p = new Nonempty_Contract_List(); it.set_first(p); history.push(p); }} after -> Contract_List, first, Nonempty_Contract_List {{ history.pop(); }} before -> Agr_Rule_List, first, Nonempty_Agr_Rule_List {{ Agr_Rule_List it = (Agr_Rule_List) history.peek(); Nonempty_Agr_Rule_List p = new Nonempty_Agr_Rule_List(); it.set_first(p); history.push(p); }} after -> Agr_Rule_List, first, Nonempty_Agr_Rule_List {{ history.pop(); }} before -> Portfolio_List, first, Nonempty_Portfolio_List {{ Portfolio_List it = (Portfolio_List) history.peek(); Nonempty_Portfolio_List p = new Nonempty_Portfolio_List(); it.set_first(p); history.push(p); }} after -> Portfolio_List, first, Nonempty_Portfolio_List {{ history.pop(); }} before -> Account_List, first, Nonempty_Account_List {{ Account_List it = (Account_List) history.peek(); Nonempty_Account_List p = new Nonempty_Account_List(); it.set_first(p); history.push(p); }} after -> Account_List, first, Nonempty_Account_List {{ history.pop(); }} before -> Posting_List, first, Nonempty_Posting_List {{ Posting_List it = (Posting_List) history.peek(); Nonempty_Posting_List p = new Nonempty_Posting_List(); it.set_first(p); history.push(p); }} after -> Posting_List, first, Nonempty_Posting_List {{ history.pop(); }} before -> Nonempty_BusinessUnit_List, it, BusinessUnit {{ Nonempty_BusinessUnit_List it = (Nonempty_BusinessUnit_List) history.peek(); BusinessUnit p = new BusinessUnit(); it.set_it(p); history.push(p); }} after -> Nonempty_BusinessUnit_List, it, BusinessUnit {{ history.pop(); }} before -> Nonempty_BusinessUnit_List, next, Nonempty_BusinessUnit_List {{ Nonempty_BusinessUnit_List it = (Nonempty_BusinessUnit_List) history.peek(); Nonempty_BusinessUnit_List p = new Nonempty_BusinessUnit_List(); it.set_next(p); history.push(p); }} after -> Nonempty_BusinessUnit_List, next, Nonempty_BusinessUnit_List {{ history.pop(); }} before -> Nonempty_Party_List, it, Party {{ Nonempty_Party_List it = (Nonempty_Party_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((Party) p); history.push(p); }} after -> Nonempty_Party_List, it, Party {{ history.pop(); }} before -> Nonempty_Party_List, next, Nonempty_Party_List {{ Nonempty_Party_List it = (Nonempty_Party_List) history.peek(); Nonempty_Party_List p = new Nonempty_Party_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Party_List, next, Nonempty_Party_List {{ history.pop(); }} before -> Nonempty_Contract_List, it, Contract {{ Nonempty_Contract_List it = (Nonempty_Contract_List) history.peek(); Contract p = new Contract(); it.set_it(p); history.push(p); }} after -> Nonempty_Contract_List, it, Contract {{ history.pop(); }} before -> Nonempty_Contract_List, next, Nonempty_Contract_List {{ Nonempty_Contract_List it = (Nonempty_Contract_List) history.peek(); Nonempty_Contract_List p = new Nonempty_Contract_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Contract_List, next, Nonempty_Contract_List {{ history.pop(); }} before -> Nonempty_Agr_Rule_List, it, Agr_Rule {{ Nonempty_Agr_Rule_List it = (Nonempty_Agr_Rule_List) history.peek(); Agr_Rule p = new Agr_Rule(); it.set_it(p); history.push(p); }} after -> Nonempty_Agr_Rule_List, it, Agr_Rule {{ history.pop(); }} before -> Nonempty_Agr_Rule_List, next, Nonempty_Agr_Rule_List {{ Nonempty_Agr_Rule_List it = (Nonempty_Agr_Rule_List) history.peek(); Nonempty_Agr_Rule_List p = new Nonempty_Agr_Rule_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Agr_Rule_List, next, Nonempty_Agr_Rule_List {{ history.pop(); }} before -> Nonempty_Portfolio_List, it, Portfolio {{ Nonempty_Portfolio_List it = (Nonempty_Portfolio_List) history.peek(); Portfolio p = new Portfolio(); it.set_it(p); history.push(p); }} after -> Nonempty_Portfolio_List, it, Portfolio {{ history.pop(); }} before -> Nonempty_Portfolio_List, next, Nonempty_Portfolio_List {{ Nonempty_Portfolio_List it = (Nonempty_Portfolio_List) history.peek(); Nonempty_Portfolio_List p = new Nonempty_Portfolio_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Portfolio_List, next, Nonempty_Portfolio_List {{ history.pop(); }} before -> Nonempty_Account_List, it, Account {{ Nonempty_Account_List it = (Nonempty_Account_List) history.peek(); Account p = new Account(); it.set_it(p); history.push(p); }} after -> Nonempty_Account_List, it, Account {{ history.pop(); }} before -> Nonempty_Account_List, next, Nonempty_Account_List {{ Nonempty_Account_List it = (Nonempty_Account_List) history.peek(); Nonempty_Account_List p = new Nonempty_Account_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Account_List, next, Nonempty_Account_List {{ history.pop(); }} before -> Nonempty_Posting_List, it, Posting {{ Nonempty_Posting_List it = (Nonempty_Posting_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((Posting) p); history.push(p); }} after -> Nonempty_Posting_List, it, Posting {{ history.pop(); }} before -> Nonempty_Posting_List, next, Nonempty_Posting_List {{ Nonempty_Posting_List it = (Nonempty_Posting_List) history.peek(); Nonempty_Posting_List p = new Nonempty_Posting_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Posting_List, next, Nonempty_Posting_List {{ history.pop(); }} }