core: import java.lang.*; import java.io.*; import edu.neu.ccs.demeter.dj.*; import java.util.*; import edu.neu.ccs.demeter.*; add: class AccountID { protected int account_id; public int get_account_id() {{ return account_id; }} public void set_account_id(int new_account_id) {{ account_id = new_account_id; }} public constructor AccountID() {{ super(); }} public constructor AccountID(int account_id) {{ super(); set_account_id(account_id); }} public static AccountID parse(java.io.Reader in) throws ParseException {{ return new Parser(in)._AccountID(); }} public static AccountID parse(java.io.InputStream in) throws ParseException {{ return new Parser(in)._AccountID(); }} public static AccountID parse(String s) {{ try { return parse(new java.io.StringReader(s)); } catch (ParseException e) { throw new RuntimeException(e.toString()); } }} public static AccountID prompt(String prompt) {{ /* This function will find an accountId given by the user input : prompt - string used to prompt the user output: a new AccountId with value given by the user */ int accountId = Main.promptInt(prompt); AccountID returnId = new AccountID(accountId); 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_account_id(this, account_id); ((UniversalVisitor) _v_).after_account_id(this, account_id); 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_account_id(this, account_id); ((UniversalVisitor) __v0).after_account_id(this, account_id); 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_account_id(this, account_id); ((UniversalVisitor) __v0).after_account_id(this, account_id); __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_account_id(this, account_id); ((UniversalVisitor) __v0).after_account_id(this, account_id); __trav_display_Bank_trv_aft(__v0); } }} {{ void __trav_viewAccount_Account_trv_bef(PrintVisitor __v0) { ((UniversalVisitor) __v0).before(this); } }} {{ void __trav_viewAccount_Account_trv_aft(PrintVisitor __v0) { ((UniversalVisitor) __v0).after(this); } }} {{ void __trav_viewAccount_Account_trv(PrintVisitor __v0) { __trav_viewAccount_Account_trv_bef(__v0); ((PrintVisitor) __v0).before_account_id(this, account_id); ((UniversalVisitor) __v0).after_account_id(this, account_id); __trav_viewAccount_Account_trv_aft(__v0); } }} }