import java.lang.*; import java.io.*; import edu.neu.ccs.demeter.dj.*; import java.util.*; import edu.neu.ccs.demeter.*; class Location { protected String string; public String get_string() { return string; } public void set_string(String new_string) { string = new_string; } public Location() { super(); } public Location(String string) { super(); set_string(string); } public static Location parse(java.io.Reader in) throws ParseException { return new Parser(in)._Location(); } public static Location parse(java.io.InputStream in) throws ParseException { return new Parser(in)._Location(); } public static Location parse(String s) { try { return parse(new java.io.StringReader(s)); } catch (ParseException e) { throw new RuntimeException(e.toString()); } } void print() { PrintVisitor v0 = new PrintVisitor(); v0.start(); __trav_print(v0); v0.finish(); } public static Location prompt(String prompt) { /* Creates a new location given by the user input: prompt - a string to prompt the user output: a new Location object */ String place = Main.promptString(prompt); Location returnLoc = new Location(place); return returnLoc; } 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_string(this, string); ((UniversalVisitor) _v_).after_string(this, string); 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_string(this, string); ((UniversalVisitor) __v0).after_string(this, string); 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_string(this, string); ((UniversalVisitor) __v0).after_string(this, string); __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_string(this, string); ((UniversalVisitor) __v0).after_string(this, string); __trav_display_Bank_trv_aft(__v0); } void __trav_viewUnit_BusinessUnit_trv_bef(PrintVisitor __v0) { ((UniversalVisitor) __v0).before(this); } void __trav_viewUnit_BusinessUnit_trv_aft(PrintVisitor __v0) { ((UniversalVisitor) __v0).after(this); } void __trav_viewUnit_BusinessUnit_trv(PrintVisitor __v0) { __trav_viewUnit_BusinessUnit_trv_bef(__v0); ((PrintVisitor) __v0).before_string(this, string); ((UniversalVisitor) __v0).after_string(this, string); __trav_viewUnit_BusinessUnit_trv_aft(__v0); } void __trav_viewContract_Contract_trv_bef(PrintVisitor __v0) { ((UniversalVisitor) __v0).before(this); } void __trav_viewContract_Contract_trv_aft(PrintVisitor __v0) { ((UniversalVisitor) __v0).after(this); } void __trav_viewContract_Contract_trv(PrintVisitor __v0) { __trav_viewContract_Contract_trv_bef(__v0); ((PrintVisitor) __v0).before_string(this, string); ((UniversalVisitor) __v0).after_string(this, string); __trav_viewContract_Contract_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_string(this, string); ((UniversalVisitor) __v0).after_string(this, string); __trav_viewAccount_Account_trv_aft(__v0); } public void __trav_print(PrintVisitor __v0) { __trav_print_Location_trv(__v0); } void __trav_print_Location_trv_bef(PrintVisitor __v0) { ((UniversalVisitor) __v0).before(this); } void __trav_print_Location_trv_aft(PrintVisitor __v0) { ((UniversalVisitor) __v0).after(this); } void __trav_print_Location_trv(PrintVisitor __v0) { __trav_print_Location_trv_bef(__v0); ((PrintVisitor) __v0).before_string(this, string); ((UniversalVisitor) __v0).after_string(this, string); __trav_print_Location_trv_aft(__v0); } }