// ** This class was generated with DemFGen (vers:02/27/2009) package gen; import edu.neu.ccs.demeterf.control.Fields; import edu.neu.ccs.demeterf.demfgen.lib.ident; import edu.neu.ccs.demeterf.demfgen.lib.verbatim; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.*; /** Computes a simple String representation */ public class Display extends edu.neu.ccs.demeterf.ID{ /** Static stub method for calling display */ public static String DisplayM(Object o){ return new edu.neu.ccs.demeterf.Traversal(new Display(),edu.neu.ccs.demeterf.Control.builtins()).traverse(o," "); } public String combine(byte o){ return ": byte \""+o+"\""; } public String combine(short o){ return ": short \""+o+"\""; } public String combine(int o){ return ": int \""+o+"\""; } public String combine(long o){ return ": long \""+o+"\""; } public String combine(float o){ return ": float \""+o+"\""; } public String combine(double o){ return ": double \""+o+"\""; } public String combine(char o){ return ": char \""+o+"\""; } public String combine(boolean o){ return ": boolean \""+o+"\""; } public String combine(String o){ return ": String \""+o+"\""; } public String combine(ident o){ return ": ident \""+o+"\""; } public String combine(verbatim o){ return ": verbatim \""+o+"\""; } public String update(Object o, Fields.any f, String d){ return d+" "; } String _i(int d){ return d==0?"":" "+_i(d-1); } public String combine(Cons _h_, String first, String rest, String _d_){ return ": Cons ("+"\n"+_d_+" "+first+"\n"+_d_+" "+rest+" )"; } public String combine(Empty _h_, String _d_){ return ": Empty ("+" )"; } public String combine(Some _h_, String just, String _d_){ return ": Some ("+"\n"+_d_+" "+just+" )"; } public String combine(None _h_, String _d_){ return ": None ("+" )"; } public String combine(Start _h_, String sample, String _d_){ return ": Start ("+"\n"+_d_+" "+sample+" )"; } public String combine(Main _h_, String _d_){ return ": Main ("+" )"; } public String combine(PaperBoy _h_, String customer, String payment, String _d_){ return ": PaperBoy ("+"\n"+_d_+" "+customer+"\n"+_d_+" "+payment+" )"; } public String combine(Apartment _h_, String kitchen, String bedrooms, String bathroom, String _d_){ return ": Apartment ("+"\n"+_d_+" "+kitchen+"\n"+_d_+" "+bedrooms+"\n"+_d_+" "+bathroom+" )"; } public String combine(Kitchen _h_, String kitchenCabinet, String _d_){ return ": Kitchen ("+"\n"+_d_+" "+kitchenCabinet+" )"; } public String combine(KitchenCabinet _h_, String m, String _d_){ return ": KitchenCabinet ("+"\n"+_d_+" "+m+" )"; } public String combine(Bedroom _h_, String mattress, String _d_){ return ": Bedroom ("+"\n"+_d_+" "+mattress+" )"; } public String combine(Bedrooms _h_, String parents, String children, String _d_){ return ": Bedrooms ("+"\n"+_d_+" "+parents+"\n"+_d_+" "+children+" )"; } public String combine(Mattress _h_, String m, String _d_){ return ": Mattress ("+"\n"+_d_+" "+m+" )"; } public String combine(Bathroom _h_, String _d_){ return ": Bathroom ("+" )"; } public String combine(Customer _h_, String wallet, String apartment, String _d_){ return ": Customer ("+"\n"+_d_+" "+wallet+"\n"+_d_+" "+apartment+" )"; } public String combine(Wallet _h_, String m, String _d_){ return ": Wallet ("+"\n"+_d_+" "+m+" )"; } public String combine(Money _h_, String v, String _d_){ return ": Money ("+"\n"+_d_+" "+v+" )"; } }