core: import java.lang.*; import java.io.*; import edu.neu.ccs.demeter.dj.*; import java.util.*; import edu.neu.ccs.demeter.*; add: class PartyId { protected int partyId; public int get_partyId() {{ return partyId; }} public void set_partyId(int new_partyId) {{ partyId = new_partyId; }} public constructor PartyId() {{ super(); }} public constructor PartyId(int partyId) {{ super(); set_partyId(partyId); }} public static PartyId parse(java.io.Reader in) throws ParseException {{ return new Parser(in)._PartyId(); }} public static PartyId parse(java.io.InputStream in) throws ParseException {{ return new Parser(in)._PartyId(); }} public static PartyId parse(String s) {{ try { return parse(new java.io.StringReader(s)); } catch (ParseException e) { throw new RuntimeException(e.toString()); } }} public static PartyId prompt(String prompt) {{ /* This function will find a partyId given by the user input: prompt - string used to prompt the user output: a new PartyId with value given by the user */ int partyId = Main.promptInt(prompt); PartyId returnId = new PartyId(partyId); return returnId; }} {{ void universal_trv0_bef(UniversalVisitor _v_) { ((UniversalVisitor) _v_).before(this); } }} {{ void universal_trv0_aft(UniversalVisitor _v_) { ((UniversalVisitor) _v_).after(this); } }} {{ void universal_trv0(UniversalVisitor _v_) { universal_trv0_bef(_v_); ((UniversalVisitor) _v_).before_partyId(this, partyId); ((UniversalVisitor) _v_).after_partyId(this, partyId); universal_trv0_aft(_v_); } }} {{ void everything_Bank_trv_bef(PrintVisitor __v0) { ((UniversalVisitor) __v0).before(this); } }} {{ void everything_Bank_trv_aft(PrintVisitor __v0) { ((UniversalVisitor) __v0).after(this); } }} {{ void everything_Bank_trv(PrintVisitor __v0) { everything_Bank_trv_bef(__v0); ((PrintVisitor) __v0).before_partyId(this, partyId); ((UniversalVisitor) __v0).after_partyId(this, partyId); everything_Bank_trv_aft(__v0); } }} {{ void __trav_print_Bank_trv_bef(PrintVisitor __v0) { ((UniversalVisitor) __v0).before(this); } }} {{ void __trav_print_Bank_trv_aft(PrintVisitor __v0) { ((UniversalVisitor) __v0).after(this); } }} {{ void __trav_print_Bank_trv(PrintVisitor __v0) { __trav_print_Bank_trv_bef(__v0); ((PrintVisitor) __v0).before_partyId(this, partyId); ((UniversalVisitor) __v0).after_partyId(this, partyId); __trav_print_Bank_trv_aft(__v0); } }} {{ void __trav_display_Bank_trv_bef(DisplayVisitor __v0) { ((DisplayVisitor) __v0).before(this); } }} {{ void __trav_display_Bank_trv_aft(DisplayVisitor __v0) { ((DisplayVisitor) __v0).after(this); } }} {{ void __trav_display_Bank_trv(DisplayVisitor __v0) { __trav_display_Bank_trv_bef(__v0); ((DisplayVisitor) __v0).before_partyId(this, partyId); ((UniversalVisitor) __v0).after_partyId(this, partyId); __trav_display_Bank_trv_aft(__v0); } }} {{ void __trav_viewParty_Party_trv_bef(PrintVisitor __v0) { ((UniversalVisitor) __v0).before(this); } }} {{ void __trav_viewParty_Party_trv_aft(PrintVisitor __v0) { ((UniversalVisitor) __v0).after(this); } }} {{ void __trav_viewParty_Party_trv(PrintVisitor __v0) { __trav_viewParty_Party_trv_bef(__v0); ((PrintVisitor) __v0).before_partyId(this, partyId); ((UniversalVisitor) __v0).after_partyId(this, partyId); __trav_viewParty_Party_trv_aft(__v0); } }} }